blender.git
7 years agostyle cleanup
Campbell Barton [Mon, 7 Jan 2013 03:24:22 +0000 (03:24 +0000)]
style cleanup

7 years agostyle cleanup: '} else' and add this check to check_style_c.py
Campbell Barton [Mon, 7 Jan 2013 02:32:57 +0000 (02:32 +0000)]
style cleanup: '} else' and add this check to check_style_c.py

7 years agofix for bugs 30300, 31107: pen pressure with multiple open windows on MS Windows
Mike Erwin [Mon, 7 Jan 2013 01:23:09 +0000 (01:23 +0000)]
fix for bugs 30300, 31107: pen pressure with multiple open windows on MS Windows

7 years agoBGE: Fix for [#33053] "2.6x Joystick Sensor Event: Axis fails to fire at full tilt...
Mitchell Stokes [Sun, 6 Jan 2013 23:11:12 +0000 (23:11 +0000)]
BGE: Fix for [#33053] "2.6x Joystick Sensor Event: Axis fails to fire at full tilt" reported by Auuman Anubis (auuman_anubis).

The problem was that SCA_Joystick::pAxisTest() was using shorts, and tried to store abs(MIN_SHRT) in a short. However, on most systems MIN_SHRT == -32768 and MAX_SHRT == 32767. This means that abs(MIN_SHRT) > MAX_SHRT, and thus the short would overflow.

7 years agoFix for r53610, check that ob->sculpt is valid before using it
Nicholas Bishop [Sun, 6 Jan 2013 20:06:53 +0000 (20:06 +0000)]
Fix for r53610, check that ob->sculpt is valid before using it

7 years agoInitialize gradient for default theme
Antony Riakiotakis [Sun, 6 Jan 2013 19:26:30 +0000 (19:26 +0000)]
Initialize gradient for default theme

7 years agoSmall draw optimization: Draw sky with glDrawElements. Calculate
Antony Riakiotakis [Sun, 6 Jan 2013 18:38:16 +0000 (18:38 +0000)]
Small draw optimization: Draw sky with glDrawElements. Calculate
positions and indices once and update only colours each frame.

7 years agoThree fixes:
Ton Roosendaal [Sun, 6 Jan 2013 18:28:39 +0000 (18:28 +0000)]
Three fixes:

- Old issue: on scrolling button views, tooltips could open or stayed open.

- New fix: alt+swipe now changes button values again

- Removed test print, from WIP code project.

7 years agoOSX/scons: make 64bit Intel the default now
Jens Verwiebe [Sun, 6 Jan 2013 18:26:29 +0000 (18:26 +0000)]
OSX/scons: make 64bit Intel the default now

7 years agoDisable multires in sculpt mode if dynamic-topology mode is enabled
Nicholas Bishop [Sun, 6 Jan 2013 18:02:47 +0000 (18:02 +0000)]
Disable multires in sculpt mode if dynamic-topology mode is enabled

sculpt_multires_active() now returns NULL if dynamic topology is
enabled. Fixes bug #33718:
projects.blender.org/tracker/?func=detail&aid=33718&group_id=9&atid=498

7 years agoSlight modification of viewport sky: Avoid clearing the colour buffer
Antony Riakiotakis [Sun, 6 Jan 2013 17:06:13 +0000 (17:06 +0000)]
Slight modification of viewport sky: Avoid clearing the colour buffer
since we fill it later anyway. Usually OpenGL does color + depth buffer
concurrently so this probably won't have any noticable effect. Still
better be pedantic about it in case we do earn some performance out of
it. Added alpha component in sky color to make sure it is set to zero in
the framebuffer too.

7 years agoEyecandy feature: background gradient for 3D viewport. Enable in user preferences...
Antony Riakiotakis [Sun, 6 Jan 2013 16:45:10 +0000 (16:45 +0000)]
Eyecandy feature: background gradient for 3D viewport. Enable in user preferences under themes->3D view->Theme Gradient Color. This is only used when use render only is not ticked and for now it may interfere with grid lines. Will investigate how to adjust contrast.

Tidying up of options after advisory session on irc: Move all RNA code
in Themes.

Changes after merging trunk's commit that renders sky

7 years agoTrackpad: "pinch/stretch" zooming is non-inversed in default now.
Ton Roosendaal [Sun, 6 Jan 2013 16:28:44 +0000 (16:28 +0000)]
Trackpad: "pinch/stretch" zooming is non-inversed in default now.

Only tested on Mac trackpads... I'm on it.

7 years agocorrect 2 issues with startup.blend
Campbell Barton [Sun, 6 Jan 2013 15:59:14 +0000 (15:59 +0000)]
correct 2 issues with startup.blend
- scroll bars were not in info space
- bake bias was 0.0, changed to 0.001 as it is for new scenes

7 years agoadd ability to use world gradient rendering when 'Only Render' option is enabled.
Campbell Barton [Sun, 6 Jan 2013 15:02:23 +0000 (15:02 +0000)]
add ability to use world gradient rendering when 'Only Render' option is enabled.
supports paper/blend/real.

7 years agoWith some help in irc (thanks erwin, markus!) and some googling, here's code
Ton Roosendaal [Sun, 6 Jan 2013 12:49:32 +0000 (12:49 +0000)]
With some help in irc (thanks erwin, markus!) and some googling, here's code
that compiles for OSX 10.6 for new momentumPhase usage.

Jens Verwiebe can give final blessings, I'm just copypasting stuff and test it :)

7 years agosequencer api args - rename start/end_frame to frame_start/end to match the rest...
Campbell Barton [Sun, 6 Jan 2013 12:42:47 +0000 (12:42 +0000)]
sequencer api args - rename start/end_frame to frame_start/end to match the rest of the RNA api.

7 years agoSolving nasty annoyance:
Ton Roosendaal [Sun, 6 Jan 2013 11:16:49 +0000 (11:16 +0000)]
Solving nasty annoyance:

Trackpad zoom (swipe + CTRL) direction was inverted compared to MMB-drag
or scrollwheel usage. In the 3D viewport it was OK, in all others not.

Now the same physical gesture maps identical to zooming everywhere. Or to
recap (with blender factory settings)

Zooming in:
- MMB-drag, move mouse towards screen
- Scroll wheel, move finger towards screen
- Magic Mouse, move finger towards screen
- Trackpad 2-finger swipe: move fingers toward screen.

To make this extra confusing: this is only consistent if you set your system
to inperpret trackpad swipes as "inverted" (pan view left = swipe to right).
This is a typical default, although Apple wants you to call this "Unnatural" :)

Next commit will be testing on laptop if all pinch gestures zoom consistent.

And following to that, a sensible user preference to map trackpad use for
Blender yourself, to invert system defaults again. :)

Blame and thanks goes to Sebastian Koenig, for his perseverance on getting this
solved :)

7 years agoRename dilate/erode rna property "type" to "mode" to avoid naming conflicts
Sergey Sharybin [Sun, 6 Jan 2013 10:30:05 +0000 (10:30 +0000)]
Rename dilate/erode rna property "type" to "mode" to avoid naming conflicts

7 years agoremove frame limits for sequence strip creation. was causing errors importing some...
Campbell Barton [Sun, 6 Jan 2013 10:17:38 +0000 (10:17 +0000)]
remove frame limits for sequence strip creation. was causing errors importing some EDL's

7 years agoBLI_assert uses printf so stdio.h should be included instead of relying on it to...
Jason Wilkins [Sun, 6 Jan 2013 09:24:45 +0000 (09:24 +0000)]
BLI_assert uses printf so stdio.h should be included instead of relying on it to be included by other headers accidentally

7 years agoWorkaround for textured display with dynamic topology enabled
Sergey Sharybin [Sun, 6 Jan 2013 08:28:45 +0000 (08:28 +0000)]
Workaround for textured display with dynamic topology enabled

This will only make object display with proper shape in textured
view, but all materials and textures will be replaced with default
gray color. There's currently no better way to deal with textured
display when dynamic topology enabled because of all UV/tfaces are
clearing when enabling dynamic topology sculpt.

Anyway, better to display gray object with proper lighting in this
case rather than not update object's shape during sculpt.

Proper solution will be possible once CD layer will be preserved
by BMesh log.

7 years agodevice_network.cpp is completely elided when WITH_NETWORK is not defined, so do not...
Jason Wilkins [Sun, 6 Jan 2013 07:10:22 +0000 (07:10 +0000)]
device_network.cpp is completely elided when WITH_NETWORK is not defined, so do not include it in the build in that case

7 years agoRemoval of old code trying to detect trackpads.
Ton Roosendaal [Sat, 5 Jan 2013 18:23:05 +0000 (18:23 +0000)]
Removal of old code trying to detect trackpads.

This was causing error in previous commit "wheel only worked after using trackpad once".

7 years agoTrackpad pans for UV/Image and MovieClip editors were inverse compared to all other...
Ton Roosendaal [Sat, 5 Jan 2013 17:57:17 +0000 (17:57 +0000)]
Trackpad pans for UV/Image and MovieClip editors were inverse compared to all other editors.

7 years agoNew version of code to detect whether a wheel is involved, or a trackpad.
Ton Roosendaal [Sat, 5 Jan 2013 17:13:07 +0000 (17:13 +0000)]
New version of code to detect whether a wheel is involved, or a trackpad.

It was compiled with "deploy target 10.6" tested on macbook with 10.8.
More tests follow quick.

7 years agoAdded some python API examples for the new get/set callbacks in bpy.props.
Lukas Toenne [Sat, 5 Jan 2013 15:50:51 +0000 (15:50 +0000)]
Added some python API examples for the new get/set callbacks in bpy.props.

7 years agostyle cleanup: also add checker for function brace placement.
Campbell Barton [Sat, 5 Jan 2013 15:36:03 +0000 (15:36 +0000)]
style cleanup: also add checker for function brace placement.

7 years agoChanges for opengl render to reflect new alpha premul pipeline
Sergey Sharybin [Sat, 5 Jan 2013 15:33:18 +0000 (15:33 +0000)]
Changes for opengl render to reflect new alpha premul pipeline
without hurting quick texture painting

- ED_view3d_draw_offscreen will now output buffer with
  transparent alpha, if sky needed it should be alpha-undered
  later.

- ED_view3d_draw_offscreen_imbuf now accepts alpha mode as an
  argument which could be either R_ADDSKY or R_PREMULALPHA

- OpenGL render and sequencer's opengl preview will now reflect
  scene's Alpha Mode

- Quick Edit will use OpenGL with transparent alpha mode

7 years agoThis patch adds support in bpy.props for getter/setter callback functions. We already...
Lukas Toenne [Sat, 5 Jan 2013 14:56:37 +0000 (14:56 +0000)]
This patch adds support in bpy.props for getter/setter callback functions. We already have update callbacks, but generic get/set functions can come in handy in some cases where the functionality is too complex to use a single value.

The current C callback functions are too simple allow a straightforward implementation, in particular they don't receive the PropertyRNA pointer itself as an argument, which means the callback cannot directly access the PropertyRNA's py_data pointers which store the python function objects. For this reason a second runtime variant of these callbacks has been added. It is only used for runtime callbacks and not in makesrna, but otherwise works the same way.

7 years agoRemove some uneeded/irrelevant "PROP_TRANSLATE".
Bastien Montagne [Sat, 5 Jan 2013 13:52:41 +0000 (13:52 +0000)]
Remove some uneeded/irrelevant "PROP_TRANSLATE".

This sub-type is actually *only* needed for the "text" property of UI rna api (maybe we should rename it to "PROP_PY_TRANSLATE", as it is anyway only 'active' during conversion from py string to RNA string property...). In fact, I think it should only be used in RNA func properties anyway, as it stores the translated string into the property, it should only be used with "one time" RNA stuff...

7 years agoRemove usage of deprecated TEX_USEALPHA from GE code
Sergey Sharybin [Sat, 5 Jan 2013 13:51:07 +0000 (13:51 +0000)]
Remove usage of deprecated TEX_USEALPHA from GE code

7 years agoMaking a few tooltips more descriptive, in light of recent confusion over the
Joshua Leung [Sat, 5 Jan 2013 12:27:54 +0000 (12:27 +0000)]
Making a few tooltips more descriptive, in light of recent confusion over the
purpose of some of these features

* ClampTo Constraint, Target Object field: now mentions that it is for curve
objects only
* Dopesheet Editor Modes: now describe what data is editable in each mode. The
wording may be a bit clumsy here, but (apart from Mask Editor one, which I'm not
entirely sure about) should at least be technically correct

7 years agoAdd translation contexts for line, mute and clip
Sv. Lockal [Sat, 5 Jan 2013 12:06:50 +0000 (12:06 +0000)]
Add translation contexts for line, mute and clip

7 years agoBugfix: "Change Frame" operator for setting current frame by clicking/scrubbing
Joshua Leung [Sat, 5 Jan 2013 11:56:20 +0000 (11:56 +0000)]
Bugfix: "Change Frame" operator for setting current frame by clicking/scrubbing
in a timeline view would show up search results in other editors (e.g. 3D View).

This only really works where there is a timeline view as:
1) The modal interactive stuff is built on the assumption that a suitable 2D
view mapping exists
2) The operator is not "registered" (i.e. no props display after usage, and
doesn't get shown in undo) as it's more "view state" than "scene data"

Rewrote poll callback to handlethis properly

7 years agoTsst... "faled"... :p
Bastien Montagne [Sat, 5 Jan 2013 11:50:36 +0000 (11:50 +0000)]
Tsst... "faled"... :p

7 years agoAdding some example for new UIList...
Bastien Montagne [Sat, 5 Jan 2013 11:14:35 +0000 (11:14 +0000)]
Adding some example for new UIList...

7 years agorevert r53570, alpha background is useful for projection paint 'Quick Edit',
Campbell Barton [Sat, 5 Jan 2013 10:26:33 +0000 (10:26 +0000)]
revert r53570, alpha background is useful for projection paint 'Quick Edit',
it would also give odd results drawing semi transparent faces will give partial alpha which is strange to have with solid backdrop.

7 years agoBGE: Fix for [#33769] "Material friction settings are ignored" reported by Alex Frase...
Mitchell Stokes [Sat, 5 Jan 2013 08:53:39 +0000 (08:53 +0000)]
BGE: Fix for [#33769] "Material friction settings are ignored" reported by Alex Fraser (z0r).

As of r53332, give_current_material() won't accept a 0 index and return NULL. CreateMaterialFromBlenderObject() was using index 0 to just grab the first material. Since this now returned NULL, it would use default settings. We'll just ask for index 1 now instead.

7 years agoFix #33753: Not selected surface objects don't update in view if shading is changed
Sergey Sharybin [Sat, 5 Jan 2013 08:24:22 +0000 (08:24 +0000)]
Fix #33753: Not selected surface objects don't update in view if shading is changed

In fact surfaces should be displaying the same way in textures and solid shading,
but they used to change a way they're displaying by draw_textured_end not resetting
light model properly, leaving two-sided shading for all further objects draw.

7 years agoFix #33674: Meta strip could overlap with other strips when exiting edit mode
Sergey Sharybin [Sat, 5 Jan 2013 08:03:16 +0000 (08:03 +0000)]
Fix #33674: Meta strip could overlap with other strips when exiting edit mode

Not sure what's the best thing to do here, for now just added vertical shuffle
of meta strip if it overlaps with other strips when existing edit mode.

7 years agoFix #33761: Infinite loop in space_image if tile size > image size
Sergey Sharybin [Sat, 5 Jan 2013 07:30:52 +0000 (07:30 +0000)]
Fix #33761: Infinite loop in space_image if tile size > image size

7 years agoFix #33768: BGE segfaults in do_versions during libload
Sergey Sharybin [Sat, 5 Jan 2013 07:25:02 +0000 (07:25 +0000)]
Fix #33768: BGE segfaults in do_versions during libload

7 years agoFix #33767: Edge of objects rendered out jerky when using OpenGL Rendering
Sergey Sharybin [Sat, 5 Jan 2013 07:08:54 +0000 (07:08 +0000)]
Fix #33767: Edge of objects rendered out jerky when using OpenGL Rendering

Made OpenGL sky opaque, so now it behaves exactly the same as sky for final render.

7 years agoBGE: The Blenderplayer wasn't calling PyEval_InitThreads, which caused async lib...
Mitchell Stokes [Sat, 5 Jan 2013 03:30:56 +0000 (03:30 +0000)]
BGE: The Blenderplayer wasn't calling PyEval_InitThreads, which caused async lib loading to crash.

7 years agoThere was a typo in previous commit
Sergey Sharybin [Fri, 4 Jan 2013 20:34:06 +0000 (20:34 +0000)]
There was a typo in previous commit

Additional changes:

- Made mipmapping operate with unsigned short instead of char
  which allowed to eliminate extra division by 255, so prevision
  should be a bit better now.

- Actually, this is not real unsigned short range, but it's a
  range of 255*255 which is more convenient for mipmapping, so
  made conversion functions private for scaling.c

  Not sure it worth making this functions operate in 65535
  range, for now current behavior seems to be just fine.

7 years agoAdding Uzbek language
Bastien Montagne [Fri, 4 Jan 2013 18:19:07 +0000 (18:19 +0000)]
Adding Uzbek language

7 years agoOptimization for speed regression in mipmap generation
Sergey Sharybin [Fri, 4 Jan 2013 17:28:58 +0000 (17:28 +0000)]
Optimization for speed regression in mipmap generation

Regression was caused by alpha premul cleanup commit and the reason
of slowdown was uchar <-> float conversion which is slow.

Replaced with uchar <-> int conversion which seeps to be accurate
enough and mostly eliminates slowdown.

Slowdown was easy to notice when movie clip is used for 3d vierport
background and undistortion is enabled. In this case every frame
will re-calculate mipmaps.

It's still a nit slower than mipmap generation before cleanup
commit, but couldn't think about extra boost here atm.

7 years agocode cleanup, also remove glError check in font drawing code since its now a debug...
Campbell Barton [Fri, 4 Jan 2013 17:24:40 +0000 (17:24 +0000)]
code cleanup, also remove glError check in font drawing code since its now a debug option.

7 years agoFix knife cut bug #33625, failure to cut in otho mode sometimes.
Howard Trickey [Fri, 4 Jan 2013 15:06:34 +0000 (15:06 +0000)]
Fix knife cut bug #33625, failure to cut in otho mode sometimes.
Problem was that the code to limit the front and back planes
for better precision assumed line would have center near origin.

7 years agoFixes - post 2.65a
Ton Roosendaal [Fri, 4 Jan 2013 14:51:02 +0000 (14:51 +0000)]
Fixes - post 2.65a

- Trackpad swipes now behave same as scrollwheel for listview scrolls
  (disabling 2d view scroll when mouse over)

- Added back 2.4 debug print for glGetError()
  Only useful for developers - to check what goes on when ogl messes up.

- Made more clear print for read factory default. It's not error :)

7 years agoCorrection for rev53555 which was obviously wrong -- always setting alpha to premul
Sergey Sharybin [Fri, 4 Jan 2013 13:19:57 +0000 (13:19 +0000)]
Correction for rev53555 which was obviously wrong -- always setting alpha to premul

Also optimized it a bit by skipping byte/float buffer allocation.

7 years agoAdded vertex color attributes (currently limited to one) and UVs included for triangl...
Stuart Broadfoot [Fri, 4 Jan 2013 12:44:38 +0000 (12:44 +0000)]
Added vertex color attributes (currently limited to one) and UVs included for triangle mesh hair.

I have also included a small speedup for the intersection test.

7 years agofix for missing NULL check in BKE_sequence_init_colorspace().
Campbell Barton [Fri, 4 Jan 2013 11:02:35 +0000 (11:02 +0000)]
fix for missing NULL check in BKE_sequence_init_colorspace().

7 years agoremove stray glBegin() during transform that caused a glError
Campbell Barton [Fri, 4 Jan 2013 09:35:38 +0000 (09:35 +0000)]
remove stray glBegin() during transform that caused a glError

7 years agofix [#33742] Solidify - Material index problem
Campbell Barton [Fri, 4 Jan 2013 08:17:09 +0000 (08:17 +0000)]
fix [#33742] Solidify - Material index problem
missed copying material offset values.

7 years agoSilent "no previous prototype" warning, which was treating as error here
Sergey Sharybin [Fri, 4 Jan 2013 08:01:35 +0000 (08:01 +0000)]
Silent "no previous prototype" warning, which was treating as error here

7 years agocommit bpy_path files, missed these in recent commit.
Campbell Barton [Fri, 4 Jan 2013 07:58:47 +0000 (07:58 +0000)]
commit bpy_path files, missed these in recent commit.

7 years agoadd length average option to 'Follow Active Quads' unwrap, gives nicer results.
Campbell Barton [Fri, 4 Jan 2013 07:57:33 +0000 (07:57 +0000)]
add length average option to 'Follow Active Quads' unwrap, gives nicer results.

7 years agofix [#33758] Blender crashes when user goes to choose "build navigation mesh"
Campbell Barton [Fri, 4 Jan 2013 05:43:26 +0000 (05:43 +0000)]
fix [#33758] Blender crashes when user goes to choose "build navigation mesh"

Give useful reports when the 'MESH_OT_navmesh_make' fails too.

7 years agochange bpy.app.build_options from frozen set to PyStructSequence_Field, mathes simila...
Campbell Barton [Fri, 4 Jan 2013 04:43:49 +0000 (04:43 +0000)]
change bpy.app.build_options from frozen set to PyStructSequence_Field, mathes similar members of bpy.app and less error prone (typos won't fail silently).

7 years agoexpose common extensions for image/movie/audio types, since python scripts had to...
Campbell Barton [Fri, 4 Jan 2013 03:47:37 +0000 (03:47 +0000)]
expose common extensions for image/movie/audio types, since python scripts had to do this internally.
- bpy.path.extensions_image
- bpy.path.extensions_movie
- bpy.path.extensions_audio

eg:

  if os.path.splitext(filename)[1].lower() in bpy.path.extensions_image:
      ... we have an image ...

7 years agofix occasional memory leak in projection paint - multiple threads could initialize...
Campbell Barton [Fri, 4 Jan 2013 03:07:25 +0000 (03:07 +0000)]
fix occasional memory leak in projection paint - multiple threads could initialize the brush curve at once.
also some header cleanup.

7 years agono need to initialize the 2D paint node tree when project painting.
Campbell Barton [Fri, 4 Jan 2013 02:54:38 +0000 (02:54 +0000)]
no need to initialize the 2D paint node tree when project painting.

7 years agofix own regression in cdDM_drawFacesTex_common() when drawParamsMapped isnt available.
Campbell Barton [Fri, 4 Jan 2013 02:14:31 +0000 (02:14 +0000)]
fix own regression in cdDM_drawFacesTex_common() when drawParamsMapped isnt available.

7 years agocode cleanup: warnings
Campbell Barton [Fri, 4 Jan 2013 02:13:29 +0000 (02:13 +0000)]
code cleanup: warnings

7 years agofix for NODE_OT_view_all / NODE_OT_view_selected not working properly.
Campbell Barton [Thu, 3 Jan 2013 16:36:17 +0000 (16:36 +0000)]
fix for NODE_OT_view_all / NODE_OT_view_selected not working properly.

7 years agofix bad left aligned text when zoomed out.
Campbell Barton [Thu, 3 Jan 2013 15:52:31 +0000 (15:52 +0000)]
fix bad left aligned text when zoomed out.
also minor change to cylinder_project_exec() - delay getting the MTFace.

7 years agoPatch from Ejner Fergo: enhancements to install_deps.sh.
Bastien Montagne [Thu, 3 Jan 2013 15:35:46 +0000 (15:35 +0000)]
Patch from Ejner Fergo: enhancements to install_deps.sh.
Mostly, it:
* Adds numpy and opencollada
* Merges both Suse and Fedora/Redhat into a single func (not sure this is a good idea, but would have been to painful to undo this).

Notes:
* I changed a bit how numpy is handled, so that the script does not try to build it when py3.3 was installed from package!
* Bumped oiio 'magic number', as now trying to use libtiff5 means we have to rebuild everything using tiff!
* Only made a quick test on my own system, but Ejner made quite some extensive ones, so it should be safe.
* I’m not sure keeping on extending that horrible bash thing is a good idea. Shell scripts are nice for small, limited stuff, but I personnaly find that one (over 53ko!) unreadable and a pita to maintain. Further more, doing the same for windows would mean to rewrite everything in another language... I have started work to port this as a py3 script, so that we have a nice structure (classes...) easy to extend/tweak/implement in various OSs/etc.!

7 years agofix for bug rendering text at small sizes, padding was incorrectly being applied...
Campbell Barton [Thu, 3 Jan 2013 15:15:51 +0000 (15:15 +0000)]
fix for bug rendering text at small sizes, padding was incorrectly being applied to the characters y offset causing out of bounds pixels to be requested from glTexSubImage2D().
also clamp width, height of the character bitmap to the bitmap bounds since this can still happen for very small text (2-3 pixels high).

7 years agoFix bevel crash bug #33714. Had to disable elem tag on new vertices.
Howard Trickey [Thu, 3 Jan 2013 13:37:17 +0000 (13:37 +0000)]
Fix bevel crash bug #33714.  Had to disable elem tag on new vertices.

7 years agocorrect invalid filter value being use for icon scaling.
Campbell Barton [Thu, 3 Jan 2013 13:19:16 +0000 (13:19 +0000)]
correct invalid filter value being use for icon scaling.

7 years agoFix CUDA build error after last commit, and remove some comments.
Brecht Van Lommel [Thu, 3 Jan 2013 13:18:35 +0000 (13:18 +0000)]
Fix CUDA build error after last commit, and remove some comments.

7 years agoCycles Hair: add Generated texture coordinates for curves, so that procedural
Brecht Van Lommel [Thu, 3 Jan 2013 12:31:05 +0000 (12:31 +0000)]
Cycles Hair: add Generated texture coordinates for curves, so that procedural
textures now work without having to add a UV map.

Also made UV and intercept attributes only export when needed by the shader.

7 years agoCycles Hair: refactoring to store curves with the index of the first key and the
Brecht Van Lommel [Thu, 3 Jan 2013 12:09:09 +0000 (12:09 +0000)]
Cycles Hair: refactoring to store curves with the index of the first key and the
number of keys in the curve, rather than curve segments with the indices of two
keys. ShaderData.segment now stores the segment number in the curve.

7 years agoCycles Hair: refactoring to support generic attributes for hair curves. There
Brecht Van Lommel [Thu, 3 Jan 2013 12:08:54 +0000 (12:08 +0000)]
Cycles Hair: refactoring to support generic attributes for hair curves. There
should be no functional changes yet. UV, tangent and intercept are now stored
as attributes, with the intention to add more like multiple uv's, vertex
colors, generated coordinates and motion vectors later.

Things got a bit messy due to having both triangle and curve data in the same
mesh data structure, which also gives us two sets of attributes. This will get
cleaned up when we split the mesh class.

7 years agochange limited dissolve angle limit default from 15 -> 5 deg. since 15deg is quite...
Campbell Barton [Thu, 3 Jan 2013 08:09:57 +0000 (08:09 +0000)]
change limited dissolve angle limit default from 15 -> 5 deg. since 15deg is quite high for 2 surfaces to be considered co-planar

7 years agocode cleanup: BM_face_create_ngon()
Campbell Barton [Thu, 3 Jan 2013 08:06:12 +0000 (08:06 +0000)]
code cleanup: BM_face_create_ngon()

Change some of the paranoid checks into an assert since they should never happen.

7 years agofix [#33689] Crash with decimate modifier
Campbell Barton [Thu, 3 Jan 2013 07:53:30 +0000 (07:53 +0000)]
fix [#33689] Crash with decimate modifier

in fact a more general bug in BM_face_create_ngon() where edges containing the same vertex multiple times were not accounted for.

7 years agofix [#33715] Dirty Vertex Colors display problem since 2.65a
Campbell Barton [Thu, 3 Jan 2013 07:01:41 +0000 (07:01 +0000)]
fix [#33715] Dirty Vertex Colors display problem since 2.65a

7 years agofix [#33682] Animation not updated when the active shape index isnt set
Campbell Barton [Thu, 3 Jan 2013 06:47:44 +0000 (06:47 +0000)]
fix [#33682] Animation not updated when the active shape index isnt set

7 years agoCMake: Looks like a period sneaked into r53515, which caused CMake to fail.
Mitchell Stokes [Thu, 3 Jan 2013 00:35:42 +0000 (00:35 +0000)]
CMake: Looks like a period sneaked into r53515, which caused CMake to fail.

7 years agoCMake: Setting vc10 to use Python 3.3 (it was still set to 3.2). For the time being...
Mitchell Stokes [Thu, 3 Jan 2013 00:29:13 +0000 (00:29 +0000)]
CMake: Setting vc10 to use Python 3.3 (it was still set to 3.2). For the time being, I'm having vc10 use the vc9 Python libs, which SCons is currently doing.

7 years agoadd option WITH_SYSTEM_BULLET to link against the bullet installation found on the...
Campbell Barton [Thu, 3 Jan 2013 00:23:52 +0000 (00:23 +0000)]
add option WITH_SYSTEM_BULLET to link against the bullet installation found on the system.

Note: this doesn't work yet for everything with latest stable bullet (2.81), need to look into why and likely apply some patches upstream.
However I managed to link blender by disabling some features, likely it can be made to work without too much trouble.

7 years agoadd id property clear function (matching the same python function for dicts/lists)
Campbell Barton [Wed, 2 Jan 2013 23:10:14 +0000 (23:10 +0000)]
add id property clear function (matching the same python function for dicts/lists)

7 years agor53351 removed a NULL check for name in defgroup_name_index(). name can be NULL when...
Mitchell Stokes [Wed, 2 Jan 2013 22:14:40 +0000 (22:14 +0000)]
r53351 removed a NULL check for name in defgroup_name_index(). name can be NULL when deforming verts in the BGE, so I'm adding a NULL check back in.

7 years agorevert 53478, it looks this is still useful for a couple of use cases in non-projecti...
Antony Riakiotakis [Wed, 2 Jan 2013 20:51:47 +0000 (20:51 +0000)]
revert 53478, it looks this is still useful for a couple of use cases in non-projective texture painting such as stamping a static texture and using image space size in pixels.

7 years agoSome UI message fixes...
Bastien Montagne [Wed, 2 Jan 2013 16:56:36 +0000 (16:56 +0000)]
Some UI message fixes...

7 years agochanges needed for EDL import to work again.
Campbell Barton [Wed, 2 Jan 2013 16:15:45 +0000 (16:15 +0000)]
changes needed for EDL import to work again.
- add sequence.update(data=False) function.
- made some sequence vars editable.
- correct some comments.

also rename rna function sequence.getStripElem() --> strip_elem_from_frame()

7 years agoBug fix - post 2.65a
Ton Roosendaal [Wed, 2 Jan 2013 16:10:03 +0000 (16:10 +0000)]
Bug fix - post 2.65a

New option "Keep Session" was not using "untitled.blend" as default save name,
in case a startup.blend was kept as session. Could give bad accidents.

7 years agoFix [#33189] AFTER 2.65 - Units in doc strings in ocean modifier.
Bastien Montagne [Wed, 2 Jan 2013 16:03:58 +0000 (16:03 +0000)]
Fix [#33189] AFTER 2.65 - Units in doc strings in ocean modifier.

Also:
* Fixes a (op prop) bug which prevented, once you had baked and freed ocean once, to bake again.
* Fixed infinite values of acumulated foam when baking with foam_fade values above 1.0, now simply clipping accumulated foam value to 1.0, as already done for the "instantaneaous" foam value returned by BKE_ocean_jminus_to_foam().
* Added missing RNA descriptions.
* Made foam_fade unanimatable!
* Added in UI some missing properties that are imho useful: random seed, size (kindof 'surface scaling'), and foam_fade (baking only).
* Removed custom lerp() func from bke's ocean.c, BLI's interpf does exactly the same thing (the first two args are just in reversed order). Note: this could most certainly be done in other parts of the code, bpy's mathutils for e.g. has its own linear interpolation code for vectors and matrices :/).
* Did some general code cleanup (mostly line length and no C++ -> C comments)...

7 years agoFix playercompile with stub for BKE_brush_gen_texture_cache
Jens Verwiebe [Wed, 2 Jan 2013 13:41:30 +0000 (13:41 +0000)]
Fix playercompile with stub for BKE_brush_gen_texture_cache

7 years agofix [#33726] keyframe_insert() and keyframe_delete() with index=-1 always fail
Campbell Barton [Wed, 2 Jan 2013 06:09:53 +0000 (06:09 +0000)]
fix [#33726] keyframe_insert() and keyframe_delete() with index=-1 always fail

The bug was introduced in r53297, was calling pyrna_struct_anim_args_parse() twice for no reason, perhaps baddly applied patch?.

7 years agoadd assert to BLI_buffer_at if a type is given different to 'elem_size'
Campbell Barton [Wed, 2 Jan 2013 05:19:55 +0000 (05:19 +0000)]
add assert to BLI_buffer_at if a type is given different to 'elem_size'

7 years agoextend BLI_buffer
Campbell Barton [Wed, 2 Jan 2013 05:00:02 +0000 (05:00 +0000)]
extend BLI_buffer
- add option to calloc or not, existing code wasnt consistent here, would calloc on first alloc but not on realloc, also - the static memory was never zero'd.
  use flag BLI_BUFFER_USE_CALLOC to ensure all new memory is zero'd (static/alloc/realloc's).

- add BLI_buffer_declare_static / BLI_buffer_declare so its possible to have a buffer that never uses static memory.

7 years agodyntopo speedup for smooth brush, no need to search for the shared vert-face loop...
Campbell Barton [Wed, 2 Jan 2013 02:12:10 +0000 (02:12 +0000)]
dyntopo speedup for smooth brush, no need to search for the shared vert-face loop, instead just iterate over the loops.

7 years agoReplacing/cleaning up some gibberish...
Joshua Leung [Wed, 2 Jan 2013 02:08:43 +0000 (02:08 +0000)]
Replacing/cleaning up some gibberish...

7 years agostyle cleanup
Campbell Barton [Wed, 2 Jan 2013 01:49:07 +0000 (01:49 +0000)]
style cleanup

7 years agorename image paint_image_2d to lowercase (as we have for view2d).
Campbell Barton [Wed, 2 Jan 2013 01:36:36 +0000 (01:36 +0000)]
rename image paint_image_2d to lowercase (as we have for view2d).

7 years agoFix for what appears to be a typo (seq_prev is always NULL) - found while
Joshua Leung [Wed, 2 Jan 2013 00:15:37 +0000 (00:15 +0000)]
Fix for what appears to be a typo (seq_prev is always NULL) - found while
reviewing the latest Clang reports