8 years agoFix uilists showing data names translated (reported on bf-translations ML by Satoshi...
Bastien Montagne [Fri, 8 Feb 2013 16:01:21 +0000 (16:01 +0000)]
Fix uilists showing data names translated (reported on bf-translations ML by Satoshi Yamasaki aka yamyam, thanks!).

8 years agoFix #33747: do better backwards compatibility for image transparency changes.
Brecht Van Lommel [Fri, 8 Feb 2013 15:56:14 +0000 (15:56 +0000)]
Fix #33747: do better backwards compatibility for image transparency changes.
The use alpha option moved from the texture datablock to the image, and now it
will duplicate the image datablock in case you have one texture using alpha and
the other not.

8 years agoCleanup: happily remove no-more-used PY_TRANSLATE RNA prop flag, and related code...
Bastien Montagne [Fri, 8 Feb 2013 15:16:57 +0000 (15:16 +0000)]
Cleanup: happily remove no-more-used PY_TRANSLATE RNA prop flag, and related code (just realized that flag value was wrong, probably own typo in a previous commit :/ ).

That "trick" was nice when introduced, but it became kind of a pita since we added translation contexts...

8 years agoRNA ui API: fix long-standing annoying glitches when using 'text' property of UI...
Bastien Montagne [Fri, 8 Feb 2013 14:29:38 +0000 (14:29 +0000)]
RNA ui API: fix long-standing annoying glitches when using 'text' property of UI functions:
    * No context-aware at all.
    * Always translated (when i18n was enabled).

Now, it will try tu use RNA struct/property context if available, unless you specify a context within optional "text_ctxt" parameter.

And you can prevent translation by setting 'translate' parameter to False (is True by default).

Will clean up code in a later commit (remove PROP_STRING_PY_TRANSLATE flag and related code), and also fix uilist templates to translate no more materials/textures/etc. names!

8 years agoFix Knife cut-through bug #34072.
Howard Trickey [Fri, 8 Feb 2013 13:51:29 +0000 (13:51 +0000)]
Fix Knife cut-through bug #34072.

8 years agoAdded warning below MultiSample User Preference option for Linux systems.
Ton Roosendaal [Fri, 8 Feb 2013 13:15:30 +0000 (13:15 +0000)]
Added warning below MultiSample User Preference option for Linux systems.

(All 8 reports in tracker for selection failures were linux...)

8 years agofix: #34051 Collada export crashes
Gaia Clary [Fri, 8 Feb 2013 12:31:47 +0000 (12:31 +0000)]
fix: #34051 Collada export crashes

8 years agofixed collada import for objects which have NO children
Gaia Clary [Fri, 8 Feb 2013 12:23:36 +0000 (12:23 +0000)]
fixed collada import for objects which have NO children

8 years agoRelease todo: added userpref for Mac users having "Natural Scroll" set.
Ton Roosendaal [Fri, 8 Feb 2013 12:12:57 +0000 (12:12 +0000)]
Release todo: added userpref for Mac users having "Natural Scroll" set.

As per discussion and analysis of all trackpad usage, we now
follow this convention:

- Blender follows system setting for trackpad direction preference.

- If you set your system to "natural" scroll, we need to invert a couple
  of cases in Blender we do "natural" already. Like:

   - view rotate (the inversed option just never feels ok)
   - scroll active items in list or pulldown menu (up/down is absolute)
   - ALT+scroll values in buttons (up/down is absolute)

The new User Preference setting "Trackpad Natural" handles this.

For 2.66 we only have trackpad handling for OS X... so this isn't
affecting trackpad usage in Windows and Linux, which stick to be mapped
to Scroll Wheel still.

(Note: viewrotate now is "natural" always, changing how it worked in the
past weeks).

8 years agouse sys.platform for checking the OS.
Campbell Barton [Fri, 8 Feb 2013 11:23:22 +0000 (11:23 +0000)]
use sys.platform for checking the OS.

8 years agopatch [#34163] "Zoom" in Python console startup message
Campbell Barton [Fri, 8 Feb 2013 10:15:44 +0000 (10:15 +0000)]
patch [#34163] "Zoom" in Python console startup message
from Shinsuke Irie (irie)

8 years agoFix #34165: Disappearing active marker label in timeline window
Sergey Sharybin [Fri, 8 Feb 2013 09:05:45 +0000 (09:05 +0000)]
Fix #34165: Disappearing active marker label in timeline window

Simply clamp label position from bottom.

8 years agoFix part #33935: Texture painting slow down with mouse, but not with tablet
Sergey Sharybin [Fri, 8 Feb 2013 08:18:44 +0000 (08:18 +0000)]
Fix part #33935: Texture painting slow down with mouse, but not with tablet

Issue is solved for painting on byte buffer with default sRGB display enabled.
In this case it is possible to skip any color space transform and just apply
dither if needed.

Still not sure if there's a regression in painting on flaots or not, will
continue investigation.

8 years agobuilding ghost-sdl works again.
Campbell Barton [Fri, 8 Feb 2013 08:02:05 +0000 (08:02 +0000)]
building ghost-sdl works again.

8 years agofix for error in own recent commit, null check before assignment.
Campbell Barton [Fri, 8 Feb 2013 04:43:36 +0000 (04:43 +0000)]
fix for error in own recent commit, null check before assignment.

8 years agofix null pointer issue when child nodes reference to unknown/invalid mesh
Gaia Clary [Fri, 8 Feb 2013 00:28:58 +0000 (00:28 +0000)]
fix null pointer issue when child nodes reference to unknown/invalid mesh

8 years agofix warning message when imported Collada nodes have < 3 edges.
Gaia Clary [Fri, 8 Feb 2013 00:27:35 +0000 (00:27 +0000)]
fix warning message when imported Collada nodes have < 3 edges.

8 years agoFix part of #34083: crash trying to play surround .wav file in the game engine
Brecht Van Lommel [Thu, 7 Feb 2013 21:29:31 +0000 (21:29 +0000)]
Fix part of #34083: crash trying to play surround .wav file in the game engine
on Windows, it still doesn't play but it doesn't crash at least.

8 years agoFix #34156: Spec. and Alpha Intensity OpenGL issue
Sergey Sharybin [Thu, 7 Feb 2013 15:36:59 +0000 (15:36 +0000)]
Fix #34156: Spec. and Alpha Intensity OpenGL issue

Issue was caused by alpha pipeline cleanup: apparently depending on
use_alpha flag different channels for spec/alpha would be used.

Made it so talpha is computed from Image->ignore_alpha instead of
always considering to be TRUTH.

This is not so much trivial to understand what's going on here, but
it's not new issue. Anyway, if someone have got ideas how to improve
feedback here -- ideas are welcome! For now only regression is fixed.

8 years agostart blender maximized on X11 - finding screen limits taking window borders, title...
Campbell Barton [Thu, 7 Feb 2013 14:41:08 +0000 (14:41 +0000)]
start blender maximized on X11 - finding screen limits taking window borders, title bar, panels & multi-monitor is quite involved - without this size if often wrong.
For sizes outside the screen bounds many window managers will ignore the requested size.

Also opening maximized was default with 2.49.

8 years agoSmall UI annoyance: proxy build progress could is incorrect in some cases
Sergey Sharybin [Thu, 7 Feb 2013 14:15:30 +0000 (14:15 +0000)]
Small UI annoyance: proxy build progress could is incorrect in some cases

8 years agoremoving xinerama on X11 dependency, this wasn't working very usefully.
Campbell Barton [Thu, 7 Feb 2013 14:10:01 +0000 (14:10 +0000)]
removing xinerama on X11 dependency, this wasn't working very usefully.

8 years agofix for [#34133] Creation of an RGBA buffer from an RGB color and an alpha channel...
Jeroen Bakker [Thu, 7 Feb 2013 07:24:22 +0000 (07:24 +0000)]
fix for [#34133] Creation of an RGBA buffer from an RGB color and an alpha channel not possible.

8 years agoFix #34145: 'Save Image' incorrect file type.
Sergey Sharybin [Thu, 7 Feb 2013 07:24:02 +0000 (07:24 +0000)]
Fix #34145: 'Save Image' incorrect file type.

Own mistake in 16bit PNG support, wrong bitmask for custom flags

ftype really needs cleanup..

8 years agofix for regression in bpy-api, python context passed to operators couldn't override...
Campbell Barton [Thu, 7 Feb 2013 04:04:12 +0000 (04:04 +0000)]
fix for regression in bpy-api, python context passed to operators couldn't override collections.

8 years agocode cleanup: use exist_ok keyword arg to os.makedirs() rather then checking if the...
Campbell Barton [Thu, 7 Feb 2013 04:02:24 +0000 (04:02 +0000)]
code cleanup: use exist_ok keyword arg to os.makedirs() rather then checking if the dir exists first.

8 years agowhen using blender as a python module, force factory-startup
Campbell Barton [Thu, 7 Feb 2013 02:50:35 +0000 (02:50 +0000)]
when using blender as a python module, force factory-startup

8 years agofix for annoyance where header menus would get scroller arrows added because it would...
Campbell Barton [Thu, 7 Feb 2013 02:03:31 +0000 (02:03 +0000)]
fix for annoyance where header menus would get scroller arrows added because it would be clamped within the screen a few pixels.

This was caused from using theme shadow setting to clip the popups and a hard-coded value to translate the popup within screen bounds - these values should be the same.

8 years agominor glitch in file selector, when opening with an operator sort wasn't set.
Campbell Barton [Thu, 7 Feb 2013 00:46:53 +0000 (00:46 +0000)]
minor glitch in file selector, when opening with an operator sort wasn't set.

8 years agoCUDA / sm_20:
Thomas Dinges [Wed, 6 Feb 2013 23:19:14 +0000 (23:19 +0000)]
CUDA / sm_20:
* Enable Lamp MIS again, it works on a GTX 570 (which is sm_20) with latest SVN. Tested by vitos1k in IRC:.
Feedback from GTX 580 users would be appreciated on this.

8 years agoFix small memory leak in cycles tile render, a few bytes for each tile.
Brecht Van Lommel [Wed, 6 Feb 2013 21:32:34 +0000 (21:32 +0000)]
Fix small memory leak in cycles tile render, a few bytes for each tile.
Reported by "aquo" on IRC.

8 years agoFix #34139: render display did not convert to straight alpha when dithering was enabled.
Brecht Van Lommel [Wed, 6 Feb 2013 20:49:33 +0000 (20:49 +0000)]
Fix #34139: render display did not convert to straight alpha when dithering was enabled.

8 years agoproblem with own changes to triabgulate: calling beauty fill directly would re-alloca...
Campbell Barton [Wed, 6 Feb 2013 15:57:12 +0000 (15:57 +0000)]
problem with own changes to triabgulate: calling beauty fill directly would re-allocate the faces which mean't triangulates output slots pointers became invalid. (noticed when using from py api)

8 years agostyle cleanup: some warnigs & spelling.
Campbell Barton [Wed, 6 Feb 2013 14:02:19 +0000 (14:02 +0000)]
style cleanup: some warnigs & spelling.

8 years agoFix #34115, Group Node corrupted by frames.
Lukas Toenne [Wed, 6 Feb 2013 13:59:54 +0000 (13:59 +0000)]
Fix #34115, Group Node corrupted by frames.

The group node operators offset nodes when moving them between node trees, but this should only be done for "free", un-parented nodes not attached to a frame, otherwise the node loc is relative to the parent node.

8 years agofix for building blender as a python module,
Campbell Barton [Wed, 6 Feb 2013 13:14:11 +0000 (13:14 +0000)]
fix for building blender as a python module,
changes to internal import behavior of py3.3 broke it.

8 years agosome fixes for building blender as a python module again (wip, more work needed).
Campbell Barton [Wed, 6 Feb 2013 13:07:45 +0000 (13:07 +0000)]
some fixes for building blender as a python module again (wip, more work needed).

8 years agoBugfix #34046
Ton Roosendaal [Wed, 6 Feb 2013 12:16:53 +0000 (12:16 +0000)]
Bugfix #34046

Linked Armature with local proxy, using feature "Custom shape at other bone" stopped working
on undo/redo.

It was actually a bug in the original commit (r26600, april 2010), storing a pointer from
the library bone into the local proxy bone.
That's strictly forbidden in Blender, but it never showed up because on every undo-redo a
complete proxy-sync was called again. To allow undo/redo I had to disable this syncing,
except for file load. Hence the feature got lost :)

The fix is simple; just store the pointer to its own local bone instead.

8 years agoadd more path debug prints when PATH_DEBUG is defined.
Campbell Barton [Wed, 6 Feb 2013 11:24:13 +0000 (11:24 +0000)]
add more path debug prints when PATH_DEBUG is defined.

8 years agoCode clean up translate node
Monique Dewanchand [Wed, 6 Feb 2013 08:40:12 +0000 (08:40 +0000)]
Code clean up translate node
added constants.
moved the code to a separate class. so it can be reused for other nodes

8 years agoadd missing bullet header to cmake, quiet reports from 'make test_cmake'
Campbell Barton [Wed, 6 Feb 2013 04:16:28 +0000 (04:16 +0000)]
add missing bullet header to cmake, quiet reports from 'make test_cmake'

8 years agofix for crashes running some operators in background mode and some divide by zero...
Campbell Barton [Wed, 6 Feb 2013 02:48:03 +0000 (02:48 +0000)]
fix for crashes running some operators in background mode and some divide by zero errors.

8 years agoBugfix [#34123] Armature "Switch Direction" doesn't work when selected bone
Joshua Leung [Wed, 6 Feb 2013 01:36:23 +0000 (01:36 +0000)]
Bugfix [#34123] Armature "Switch Direction" doesn't work when selected bone
belongs to more than one chain

For example:

If bone B is selected, then it would get operated on twice, creating the
illusion that it had not been operated on. This is because we traverse up the
chains (child to parent) as the EditBone structure only stores parent to
children relationships only. A second invocation of this operator would then
work fine, as all the links to other bones would have been removed, thus
preventing further problems.

Fixed by tagging bones that have been operated on.

8 years agoenable xinerama for scons.
Campbell Barton [Wed, 6 Feb 2013 01:28:56 +0000 (01:28 +0000)]
enable xinerama for scons.

8 years agofix [#34125] Crash when bake margin = 0
Campbell Barton [Wed, 6 Feb 2013 00:48:17 +0000 (00:48 +0000)]
fix [#34125] Crash when bake margin = 0
regression since 2.65, just missing NULL check.

8 years agorigidbody: Use ARROWS empty draw type when creating constraints
Sergej Reich [Tue, 5 Feb 2013 21:51:20 +0000 (21:51 +0000)]
rigidbody: Use ARROWS empty draw type when creating constraints

Since we don't have constraint visualization yet, it's useful to see
where the individual axes point.

8 years agorigidbody: Code cleanup
Sergej Reich [Tue, 5 Feb 2013 21:51:18 +0000 (21:51 +0000)]
rigidbody: Code cleanup

Stupid oversight, don't use floats for indices.

8 years agorigidbody: Invert spring damping range
Sergej Reich [Tue, 5 Feb 2013 21:51:17 +0000 (21:51 +0000)]
rigidbody: Invert spring damping range

Before 1 was no damping, which is inconsistent with the rest of the

8 years agorigidbody: Don't use units for spring stiffness
Sergej Reich [Tue, 5 Feb 2013 21:51:15 +0000 (21:51 +0000)]
rigidbody: Don't use units for spring stiffness

8 years agoOSX/cmake/scons: python version foolproof
Jens Verwiebe [Tue, 5 Feb 2013 19:49:53 +0000 (19:49 +0000)]
OSX/cmake/scons: python version foolproof

8 years agoOSX/cmake: Fix ypthn version for module compile
Jens Verwiebe [Tue, 5 Feb 2013 18:24:26 +0000 (18:24 +0000)]
OSX/cmake: Fix ypthn version for module compile

8 years agoNew matcap collection for default in release. It's now 24 images, ordered
Ton Roosendaal [Tue, 5 Feb 2013 16:16:07 +0000 (16:16 +0000)]
New matcap collection for default in release. It's now 24 images, ordered
from regular diffuse to more shiny, stone, wax, eflective, glass and two non-realistic ones.

The menu now shows it in 3 rows. I made the previews a bit smaller, 96 pixels,
like the brushes for painting.

Thanks everyone for submitting pics! I updated the credit file too, but name
from one person is missing still, will be added next.

8 years agoFix cycles missing AA/alpha settings for OpenGL render, these are now in the film...
Brecht Van Lommel [Tue, 5 Feb 2013 15:58:15 +0000 (15:58 +0000)]
Fix cycles missing AA/alpha settings for OpenGL render, these are now in the film panel.

8 years agoApparently my system here considers fullscreen window as maximized
Sergey Sharybin [Tue, 5 Feb 2013 15:52:40 +0000 (15:52 +0000)]
Apparently my system here considers fullscreen window as maximized
which makes it impossible to toggle from fullscreen to windowed mode
when startup.blend is saved in fullscreen mode.

Reshuffled checks a bit, which is actually makes sense, will investigate
which change caused regression since 2.65a tomorrow.

8 years agoDidn't notice this panel was already enabled for Cycles
Sergey Sharybin [Tue, 5 Feb 2013 15:30:00 +0000 (15:30 +0000)]
Didn't notice this panel was already enabled for Cycles

8 years agoAdd missing Custom Properties panels when Cycles render is active
Sergey Sharybin [Tue, 5 Feb 2013 15:22:30 +0000 (15:22 +0000)]
Add missing Custom Properties panels when Cycles render is active

8 years agoCompositor:
Thomas Dinges [Tue, 5 Feb 2013 15:01:08 +0000 (15:01 +0000)]
* Bump BLENDER_SUBVERSION to "10", to reflect changes in r54304. (Compositor Translate Node)

8 years agoset drag/drop operators as 'INTERNAL', there not useful to access from operator search.
Campbell Barton [Tue, 5 Feb 2013 14:38:19 +0000 (14:38 +0000)]
set drag/drop operators as 'INTERNAL', there not useful to access from operator search.

8 years agofix [#34118] Crash, when clicking "Assign image to UV Map"
Campbell Barton [Tue, 5 Feb 2013 14:33:55 +0000 (14:33 +0000)]
fix [#34118] Crash, when clicking "Assign image to UV Map"

8 years agoWorkaround for deadlock in face/hole merge function in carve
Sergey Sharybin [Tue, 5 Feb 2013 14:27:24 +0000 (14:27 +0000)]
Workaround for deadlock in face/hole merge function in carve
which could happen in cases of degenerated faces.

8 years agoadd RNA_define_animate_sdna() so animation can be easily disabled when defining many...
Campbell Barton [Tue, 5 Feb 2013 14:25:22 +0000 (14:25 +0000)]
add RNA_define_animate_sdna() so animation can be easily disabled when defining many properties - currently use to disable animating brushes and toolsettings.

8 years agoFix #34041: rendered view + border
Sergey Sharybin [Tue, 5 Feb 2013 14:16:19 +0000 (14:16 +0000)]
Fix #34041: rendered view + border

Issue was caused by rare cases when camera move happens just after
last sample was finished, this would lead to missing delay reset
because render cycle will go to pause_cond.wait(). No reset will
happen at this point because of some kind of optimization which
checks whether camera is tagged for update and wouldn't do reset
in this case.

Talked to Brecht and seems this optimization is not actually needed
and removing it will solve issue with frozen preview.

8 years agoFix particle child render resolution access not working outside of the render thread,
Brecht Van Lommel [Tue, 5 Feb 2013 13:33:54 +0000 (13:33 +0000)]
Fix particle child render resolution access not working outside of the render thread,
and rename ToggleRender to set_resolution to follow RNA conventions.

8 years agoFix non-progressive lamps with multiple samples not giving correct intensity after
Brecht Van Lommel [Tue, 5 Feb 2013 13:33:24 +0000 (13:33 +0000)]
Fix non-progressive lamps with multiple samples not giving correct intensity after
recent fix.

8 years agoAnd one more "G.main" compile fix, this time for BGE ;)
Bastien Montagne [Tue, 5 Feb 2013 13:31:59 +0000 (13:31 +0000)]
And one more "G.main" compile fix, this time for BGE ;)

8 years ago* One more fix for Collada.
Thomas Dinges [Tue, 5 Feb 2013 13:16:21 +0000 (13:16 +0000)]
* One more fix for Collada.

8 years agoTracking settings for new clip didn't match default reset
Sergey Sharybin [Tue, 5 Feb 2013 13:10:26 +0000 (13:10 +0000)]
Tracking settings for new clip didn't match default reset

8 years agoAttempt to fix collada compilation after recent commit
Sergey Sharybin [Tue, 5 Feb 2013 13:04:01 +0000 (13:04 +0000)]
Attempt to fix collada compilation after recent commit

I don't have recent collada compiled here atm, so perhaps there're
more issues here.

8 years agoFix #34040: Moving Normal Node with enabled Cycles Material Preview crashes
Sergey Sharybin [Tue, 5 Feb 2013 12:46:15 +0000 (12:46 +0000)]
Fix #34040: Moving Normal Node with enabled Cycles Material Preview crashes

Issue was caused by couple of circumstances:

- Normal Map node requires tesselated faces to compute tangent space
- All temporary meshes needed for Cycles export were adding to G.main
- Undo pushes would temporary set meshes tessfaces to NULL
- Moving node will cause undo push and tree re-evaluate fr preview

All this leads to threading conflict between preview render and undo

Solved it in  way that all temporary meshes are adding to that exact
Main which was passed to Cycles via BlendData. This required couple
of mechanic changes like adding extra parameter to *_add() functions
and adding some *_ex() functions to make it possible RNA adds objects
to Main passed to new() RNA function.

This was tricky to pass Main to RNA function and IMO that's not so
nice to pass main to function, so ended up with such decision:

- Object.to_mesh() will add temp mesh to G.main
- Added Main.meshes.new_from_object() which does the same as to_mesh,
  but adds temporary mesh to specified Main.

So now all temporary meshes needed for preview render would be added
to preview_main which does not conflict with undo pushes.

Viewport render shall not be an issue because object sync happens from
main thread in this case.

It could be some issues with final render, but that's not so much
likely to happen, so shall be fine.

Thanks to Brecht for review!

8 years agoown recent change to triangulate bmesh operator stopped filling in mapping slot ...
Campbell Barton [Tue, 5 Feb 2013 11:30:50 +0000 (11:30 +0000)]
own recent change to triangulate bmesh operator stopped filling in mapping slot 'face_map.out', not used by blender its self but useful for scripts, enable this again.

8 years agoremove stringify macro from alloc's
Campbell Barton [Tue, 5 Feb 2013 09:42:40 +0000 (09:42 +0000)]
remove stringify macro from alloc's

8 years agofix [#34105] bake artifacts
Campbell Barton [Tue, 5 Feb 2013 08:16:04 +0000 (08:16 +0000)]
fix [#34105] bake artifacts
different threads could allocate the mask buffer and overwrite the same pointer, regression since 2.65

8 years agofix [#34113] operator_menu_enum() - Tooltip not showing descriptions
Campbell Barton [Tue, 5 Feb 2013 05:39:18 +0000 (05:39 +0000)]
fix [#34113] operator_menu_enum() - Tooltip not showing descriptions

second fix from this report which makes the menu show tips even when 'bl_property' isn't set.

8 years agoadd python api docstring for 'bpy.types.Operator.bl_property'
Campbell Barton [Tue, 5 Feb 2013 05:09:19 +0000 (05:09 +0000)]
add python api docstring for 'bpy.types.Operator.bl_property'

8 years agofix [#34113] operator_menu_enum() - Tooltip not showing descriptions
Campbell Barton [Tue, 5 Feb 2013 04:41:11 +0000 (04:41 +0000)]
fix [#34113] operator_menu_enum() - Tooltip not showing descriptions

Python wasn't able to set 'OperatorType.prop', which is used by uiButGetStrInfo().

add 'bl_property' to python operators which is assigned to OperatorType.prop when registering.

(api docs coming next)

8 years agofix for valgrind warning - using uninitialized variable. Though in practice it didn...
Campbell Barton [Tue, 5 Feb 2013 02:28:49 +0000 (02:28 +0000)]
fix for valgrind warning - using uninitialized variable. Though in practice it didn't cause any problems.

Getting the 'CTX_data_main' while un-fullscreen'ing a space would do a context lookup into the view3d_context which had an uninitialized layer.
since view3d_context doesn't hold a 'main' member it never did anything but cleaner not to do context lookups while modifying the view.
- noticed while checking on a real bug :)

8 years agorigidbody: Avoid always making passive objects kinematic
Sergej Reich [Mon, 4 Feb 2013 23:50:38 +0000 (23:50 +0000)]
rigidbody: Avoid always making passive objects kinematic

It's only needed when they're being transformed.
Also deactivate passive objects after transformation so they don't keep
acitvating deactivated objects.

Fixes issues with using "start deactivated".

8 years agorigidbody: Fix [#34108] Rigid body with no polygons crashes blender
Sergej Reich [Mon, 4 Feb 2013 23:50:36 +0000 (23:50 +0000)]
rigidbody: Fix [#34108] Rigid body with no polygons crashes blender

Fall back to using box shape in case creating shape from mesh fails.

8 years agorigidbody: Don't allow collision shape to be animated
Sergej Reich [Mon, 4 Feb 2013 23:50:34 +0000 (23:50 +0000)]
rigidbody: Don't allow collision shape to be animated

While it's fun to be able to change collison shape while the simulation is
running it can cause crashes in some cases.

8 years agorigidbody: Fix [#34106] Deleting an object with Bullet Constraint crashes Blender
Sergej Reich [Mon, 4 Feb 2013 23:50:31 +0000 (23:50 +0000)]
rigidbody: Fix [#34106] Deleting an object with Bullet Constraint crashes Blender

Constraints are deleted before rigid bodies so need to check if constraint
exists in case both the constraint and ridid body are on the same object.

8 years agoThe usual UI messages tweaks...
Bastien Montagne [Mon, 4 Feb 2013 19:12:17 +0000 (19:12 +0000)]
The usual UI messages tweaks...

8 years agoCycles UI Code:
Thomas Dinges [Mon, 4 Feb 2013 18:50:09 +0000 (18:50 +0000)]
Cycles UI Code:
* Some more variable cleanup for old texture output.

8 years agoupdated fix for [#34089] Crash opening file containing translation node saved before...
Monique Dewanchand [Mon, 4 Feb 2013 17:38:37 +0000 (17:38 +0000)]
updated fix for [#34089] Crash opening file containing translation node saved before rev54235
some of our artists work to much on trunk :) Especially our beloved Pablo Vazquez.

We increased the blender file sub-version for checking if translate nodes needed to be updated.

Happy blending.

8 years agoFix for [#34110] Displacement modifier + Procedural texture + Cycles -> 'NoneType...
Thomas Dinges [Mon, 4 Feb 2013 17:01:42 +0000 (17:01 +0000)]
Fix for [#34110] Displacement modifier + Procedural texture + Cycles -> 'NoneType' object has no attribute 'texture_mapping'
* Issue was caused by a remaining part from the "OUTPUT_TEXTURE" node UI code, from the original Cycles branch.

8 years agoCompile fix for r54300, setFactorXY function does not return a value.
Thomas Dinges [Mon, 4 Feb 2013 16:50:20 +0000 (16:50 +0000)]
Compile fix for r54300, setFactorXY function does not return a value.

8 years agocode cleanup: warnings
Campbell Barton [Mon, 4 Feb 2013 16:20:39 +0000 (16:20 +0000)]
code cleanup: warnings

8 years agoCompositor "Relative" option for Translate node, same as for other nodes this
Brecht Van Lommel [Mon, 4 Feb 2013 16:12:42 +0000 (16:12 +0000)]
Compositor "Relative" option for Translate node, same as for other nodes this
makes it possible to specify an offset relative to the render resolution (so 0.5
is half the image rather than giving the number of pixels). It's a bit late but
it's a trivial change and needed for 4k mango render.

8 years agoFix cycles intersection issue with overlapping faces on windows 32 bit and CPU
Brecht Van Lommel [Mon, 4 Feb 2013 16:12:37 +0000 (16:12 +0000)]
Fix cycles intersection issue with overlapping faces on windows 32 bit and CPU
without SSE3 support, due to 80 bit precision float register being used for one
bounding box but not the one next to it.

8 years agoFix window fullscreen crash when building for Mac OS X 10.5.
Brecht Van Lommel [Mon, 4 Feb 2013 16:12:27 +0000 (16:12 +0000)]
Fix window fullscreen crash when building for Mac OS X 10.5.

8 years agofix for rangefunc being unused for int & int array.
Campbell Barton [Mon, 4 Feb 2013 15:48:29 +0000 (15:48 +0000)]
fix for rangefunc being unused for int & int array.

also cast strlen to an int to avoid overflow.

8 years agofix for memory leak selecting dope sheet summary with mask/grease-pencil data.
Campbell Barton [Mon, 4 Feb 2013 13:50:09 +0000 (13:50 +0000)]
fix for memory leak selecting dope sheet summary with mask/grease-pencil data.

8 years agofix [#34107] Grease pencil crash after box select
Campbell Barton [Mon, 4 Feb 2013 13:17:34 +0000 (13:17 +0000)]
fix [#34107] Grease pencil crash after box select

8 years agofix [#34104] vertex color: color select bug
Campbell Barton [Mon, 4 Feb 2013 12:32:24 +0000 (12:32 +0000)]
fix [#34104] vertex color: color select bug

changing the hue in a color picker on a panel when black/white was selected would fail because the hue from the previous state wasnt stored.

8 years agoFix #34079: RGB and HSV values inconsistency
Sergey Sharybin [Mon, 4 Feb 2013 12:14:59 +0000 (12:14 +0000)]
Fix #34079: RGB and HSV values inconsistency

Use COLOR_GAMMA subtype for new image color since this color is
actually being color managed. Also made it so byte and float
buffers would have the same exact display color after creation
with the same color value.

Also made it so color strip's color have COLOR_GAMMA subtype,
otherwise swatch color wouldn't match render result which is
not nice at all.

8 years agofix [#34098] Crash after using Decimate or Remesh modifiers
Campbell Barton [Mon, 4 Feb 2013 11:28:31 +0000 (11:28 +0000)]
fix [#34098] Crash after using Decimate or Remesh modifiers

converting a derived mesh to a mesh didnt clear its selection history, which could be invalid after applying a modifier.

8 years agoCycles / OSL:
Thomas Dinges [Mon, 4 Feb 2013 11:23:40 +0000 (11:23 +0000)]
Cycles / OSL:
* Fix for r53689, there are two noise types, signed and unsigned.
Caused Musgrave Texture to render differently compared to SVM backend.

8 years agoCycles preview scene: made render layer name match name used for BI preview
Sergey Sharybin [Mon, 4 Feb 2013 11:06:47 +0000 (11:06 +0000)]
Cycles preview scene: made render layer name match name used for BI preview

This is needed because render result is being reused between different render
previews and keeping names out of sync means once preview result was created
for blender internal, it wouldn't be updated after switching to cycles.

Same goes to switching from cycles to other renderers like lux and yaf.

Simply updated cycles_preview.blend for now, could be solved from code side
as well, but IMO better to collect such a limitations of preview blend files
and solve them all together during "custom preview.blend for external engines"

Reported by Jens in IRC.

8 years agoadd BM_edge_is_contiguous(), check for python api.
Campbell Barton [Mon, 4 Feb 2013 10:14:31 +0000 (10:14 +0000)]
add BM_edge_is_contiguous(), check for python api.

8 years agofix [#33831] "Alt" key is "Alt Window Deactivated"
Campbell Barton [Mon, 4 Feb 2013 07:51:01 +0000 (07:51 +0000)]
fix [#33831] "Alt" key is "Alt Window Deactivated"
update to the ubuntu workaround from Shinsuke Irie.

8 years agostyle cleanup: spaces -> tabs
Campbell Barton [Mon, 4 Feb 2013 00:18:09 +0000 (00:18 +0000)]
style cleanup: spaces -> tabs