blender.git
8 years agocode cleanup: change order of args in void BKE_object_where_is_calc_time_ex() so...
Campbell Barton [Sun, 17 Feb 2013 03:57:20 +0000 (03:57 +0000)]
code cleanup: change order of args in void BKE_object_where_is_calc_time_ex() so extra arg is at the end (loose convention for *_ex() funcs). also some style cleanup.

8 years agoFix for harmless uninitialized-variable warning
Nicholas Bishop [Sat, 16 Feb 2013 21:36:26 +0000 (21:36 +0000)]
Fix for harmless uninitialized-variable warning

8 years agoFix performance regression with anchor brush in sculpt mode
Nicholas Bishop [Sat, 16 Feb 2013 21:32:05 +0000 (21:32 +0000)]
Fix performance regression with anchor brush in sculpt mode

When restoring coordinates in sculpt mode (used for several brushes
including anchor brush), can use sculpt_undo_get_node() for
non-dyntopo sculpting instead of sculpt_undo_push_node().

This should bring speed of anchor brush back to 2.65 level for regular
mesh/multires sculpting.

Fixes projects.blender.org/tracker/?func=detail&atid=498&aid=34208&group_id=9

8 years agoFix for [#34182] Movie Distortion and Bilateral Blur doesn't work together
Jeroen Bakker [Sat, 16 Feb 2013 21:21:04 +0000 (21:21 +0000)]
Fix for [#34182] Movie Distortion and Bilateral Blur doesn't work together

 * added area of interest based on a radius around the input tile.
If someone can implement a correct formula (based on K1, K2 and K3) and send it to me, I will be happy to apply it!

 - At Mind -

8 years agoAdded option for group node buffering in the compositor.
Monique Dewanchand [Sat, 16 Feb 2013 20:21:41 +0000 (20:21 +0000)]
Added option for group node buffering in the compositor.

Justa cluster did not have enough memory to handle all Mango 4k scenes.
Option is default disabled and can be enabled in the performance panel.

 - At Mind -

8 years agorigidbody: Fix [#34277] Deleting a copied bullet scene crashes blender.
Sergej Reich [Sat, 16 Feb 2013 19:24:52 +0000 (19:24 +0000)]
rigidbody: Fix [#34277] Deleting a copied bullet scene crashes blender.

Copying scenes didn't handle rigid body worlds previously.

Since we use groups to keep track of objecs in the rigid body sim it's
tricky to do the right thing here since groups aren't duplicated.
One option would be to create new groups and add the duplicated objects
into those but that has other drawbacks.
So the rigid body world isn't copied for now.

TODO find a better way of handling this.

8 years agoCode cleanup, remove redundant function wrapper
Sergej Reich [Sat, 16 Feb 2013 19:24:50 +0000 (19:24 +0000)]
Code cleanup, remove redundant function wrapper

8 years agorigidbody: Further fix for background scenes
Sergej Reich [Sat, 16 Feb 2013 16:17:45 +0000 (16:17 +0000)]
rigidbody: Further fix for background scenes

Since rigid bodies need their world to be be updated correctly we now
pass it alongside the parent scene in scene_update_tagged_recursive().

Add BKE_object_handle_update_ex() as well as other object functions
that take a RigidBodyWorld for this.

Ideally this shouldn't be needed but we'd have to restructure scene
handling for that. It's not a small taks however and definitely not
something that can be done before release.

Thanks to Campbell for review.

8 years agoAdding a missing end paren to the Use Material Caching tooltip.
Mitchell Stokes [Sat, 16 Feb 2013 06:08:07 +0000 (06:08 +0000)]
Adding a missing end paren to the Use Material Caching tooltip.

8 years agoBGE: Fix for issue #34242 "It does not render in "P" mode for Game engine if you...
Mitchell Stokes [Sat, 16 Feb 2013 04:38:53 +0000 (04:38 +0000)]
BGE: Fix for issue #34242 "It does not render in "P" mode for Game engine if you UV mapa a face of a cube" reported by joaclint.

Material caching can now be disabled for Multitexture and GLSL Materials.

8 years agorigidbody: Avoid unnecessary simulation updates
Sergej Reich [Fri, 15 Feb 2013 23:48:36 +0000 (23:48 +0000)]
rigidbody: Avoid unnecessary simulation updates

Now we flag the world for update on frame change and only call
BKE_rigidbody_do_simulation() when needed.

8 years agoAnd more UI messages issues fixing... Thanks again to Gabriel Gazzán and Leon Cheung!
Bastien Montagne [Fri, 15 Feb 2013 18:19:20 +0000 (18:19 +0000)]
And more UI messages issues fixing... Thanks again to Gabriel Gazzán and Leon Cheung!

8 years agoFix part of #34239: crash with cycles textured draw mode + dynamic topology sculpt.
Brecht Van Lommel [Fri, 15 Feb 2013 16:56:42 +0000 (16:56 +0000)]
Fix part of #34239: crash with cycles textured draw mode + dynamic topology sculpt.

8 years ago'Reset to Default Theme' wasn't taking into account those themes that enable panel...
Pablo Vazquez [Fri, 15 Feb 2013 16:42:41 +0000 (16:42 +0000)]
'Reset to Default Theme' wasn't taking into account those themes that enable panel header/background.

8 years agoFix: Collada Import files with X_UP and Y_UP axis where imported with wrong orientation
Gaia Clary [Fri, 15 Feb 2013 15:36:02 +0000 (15:36 +0000)]
Fix: Collada Import files with X_UP and Y_UP axis where imported with wrong orientation

8 years agoAdd some more detailed CUDA error prints to try to debug #34166.
Brecht Van Lommel [Fri, 15 Feb 2013 14:54:11 +0000 (14:54 +0000)]
Add some more detailed CUDA error prints to try to debug #34166.

8 years agoVarious fixes for UI translation issues (reported by Leon Cheung on bf-translations...
Bastien Montagne [Fri, 15 Feb 2013 14:30:36 +0000 (14:30 +0000)]
Various fixes for UI translation issues (reported by Leon Cheung on bf-translations ML, thanks!).

8 years agorevert own commit r54450, this works on X11 but not in Windows and caused bug [#34255...
Campbell Barton [Fri, 15 Feb 2013 13:30:30 +0000 (13:30 +0000)]
revert own commit r54450, this works on X11 but not in Windows and caused bug [#34255] (which may be a bug in windows ghost?, not getting key release for modifiers).

Cross platform modifier keys on activating window better be handled at ghost level anyway.

8 years agoskip fix from r54579 when holes aren't used (keeps bmesh ngon filling fast)
Campbell Barton [Fri, 15 Feb 2013 12:57:11 +0000 (12:57 +0000)]
skip fix from r54579 when holes aren't used (keeps bmesh ngon filling fast)

8 years agoBug fix #34177
Ton Roosendaal [Fri, 15 Feb 2013 12:26:47 +0000 (12:26 +0000)]
Bug fix #34177

Blender's triangulator has been rescued :)
This commit fixes errors with concave holes inside polygons.

Simple explanation:

Blender "ScanFill" works by sorting vertices from top-left to bottom-right, and connecting
these vertices with a sorted list of edges they have.

The inner loop then goes over every vertex, its edges, and tries to make triangles by
checking vertices that are next in the list.
- if the triangle has points inside: it creates an edge to this vertex, and continues
- else: add new triangle.

Very simple, fast and efficient. But it needed one more check for the first step: it should
check every vertex inside the triangle, and pick the best vertex for an edge based on forming
the sharpest angle with the tested edge. That solves the case for concave holes.

Blender ScanFill was coded 20 years ago, and is an own invention. I wanted a triangulator that
just fills any collection of polygons, including with holes.
No idea if this was ever published in a paper!

8 years agoFix #34256: join a mesh with non-uniform scale with another mesh showed wrong
Brecht Van Lommel [Fri, 15 Feb 2013 12:08:01 +0000 (12:08 +0000)]
Fix #34256: join a mesh with non-uniform scale with another mesh showed wrong
normals, they need to be recalculated then.

8 years agoBugfix [#33970] Background Scene does not show animation of rigid body objects
Joshua Leung [Fri, 15 Feb 2013 11:49:22 +0000 (11:49 +0000)]
Bugfix [#33970] Background Scene does not show animation of rigid body objects

This was caused by multiple instantiations of the same basic problem. The
rigidbody handling code often assumed that "scene" pointers referred to the
scene where an object participating in the sim resided (and where the rigidbody
world for that sim lived). However, when dealing with background sets, "scene"
often only refers to the active scene, and not the set that the object actually
came from. Hence, the rigidbody code would often (wrongly) conclude that there
was nothing to do.

For example, we may have the following backgound set/scene chaining scenario:
"active"  <-- ... <-- set i (rigidbody objects live here) <-- ... <-- set n

The fix here is a multi-part fix:
1) Moved sim-world calculation from BKE_scene_update_newframe() to
scene_update_tagged_recursive()
    + This is currently the only way that rigidbody sims in background sets will
get calculated, as part of the recursion
     - These checks will get run on each update. <--- FIXME!!!

2) Tweaked depsgraph code so that when checking if there are any time-dependent
features on objects to tag for updating, the checking is done relative to the
scene that the object actually resides in (and not the active scene). Otherwise,
even if we recalculate the sim, the affected objects won't get tagged for
updating. This tagging is needed to actually flush the transforms out of the
RigidBodyObject structs (written by the sim/cache) and into the Object
transforms (obmat's)

3) Removed the requirement for rigidbody world to actually exist before we can
flush rigidbody transforms. In many cases, it should be sufficient to assume
that because the object with rigidbody data attached has been tagged for
updates, it should have updates to perform. Of course, we still check on this
data if we've got it, but that's only if the sim is in the active scene.
   - TODO: if we have further problems, we should investigate passing the
"actual" scene down alongside the "active" scene for BKE_object_handle_update().

8 years agoFix #34254: cycles brightness/contrast node was missing for GLSL material view.
Brecht Van Lommel [Fri, 15 Feb 2013 11:46:31 +0000 (11:46 +0000)]
Fix #34254: cycles brightness/contrast node was missing for GLSL material view.

8 years agoFix #34205: Zooming in rendered mode during update out of sync with intended zoom
Sergey Sharybin [Fri, 15 Feb 2013 09:15:14 +0000 (09:15 +0000)]
Fix #34205: Zooming in rendered mode during update out of sync with intended zoom

Yes, again.

There's some t within which reset is not allowed. This is so no reset happens
too often for performance issues. If camera changes too often, some reset could
be missed because of this timeout.

For now tag engine for update, which will update viewport from blender side.

Proper solution could be to detect such a changes from blender side and tag
cycles for refresh instead of trying to detect changes form cycles, but that's
for later.

8 years agoFix [#34253] UIList resize, resizes wrong list I/II
Bastien Montagne [Fri, 15 Feb 2013 08:32:25 +0000 (08:32 +0000)]
Fix [#34253] UIList resize, resizes wrong list I/II

When using default UI_UL_list, one should always spully a custom ID, else collision inside an area are quite likely...

8 years agoTranslate "Set Parent To" menu (ctrl-P), reported on bf-translations ML by Satoshi...
Bastien Montagne [Fri, 15 Feb 2013 08:31:00 +0000 (08:31 +0000)]
Translate "Set Parent To" menu (ctrl-P), reported on bf-translations ML by Satoshi Yamasaki, thanks!

8 years agoadd debug check for mempool double free (or misuse of BLI_MEMPOOL_ALLOW_ITER),
Campbell Barton [Fri, 15 Feb 2013 04:14:53 +0000 (04:14 +0000)]
add debug check for mempool double free (or misuse of BLI_MEMPOOL_ALLOW_ITER),
some reports in the tracker show errors on bmesh iteration which could be caused by this.

8 years agostyle cleanup
Campbell Barton [Thu, 14 Feb 2013 23:49:30 +0000 (23:49 +0000)]
style cleanup

8 years agoFix #34252: cycles rendering 16bit PNG with too light colors.
Brecht Van Lommel [Thu, 14 Feb 2013 21:40:29 +0000 (21:40 +0000)]
Fix #34252: cycles rendering 16bit PNG with too light colors.

8 years agoFix cycles hair curves with NaN values not rendering with dynamic BVH. These NaN
Brecht Van Lommel [Thu, 14 Feb 2013 21:40:28 +0000 (21:40 +0000)]
Fix cycles hair curves with NaN values not rendering with dynamic BVH. These NaN
values were breaking the bounding box computation, now they should have no influence.

8 years agoFix 3d view DPI issue with object name overlapping axis icon.
Brecht Van Lommel [Thu, 14 Feb 2013 21:40:22 +0000 (21:40 +0000)]
Fix 3d view DPI issue with object name overlapping axis icon.

8 years agoCycles:
Thomas Dinges [Thu, 14 Feb 2013 19:30:25 +0000 (19:30 +0000)]
Cycles:
* Compile fix when building without OSL.

8 years agoFix "Origin to Center of Mass" not working well with ngons
Sergej Reich [Thu, 14 Feb 2013 17:35:46 +0000 (17:35 +0000)]
Fix "Origin to Center of Mass" not working well with ngons

Now we do simple triangulation and calculate signed area of triangles to
account for concave polygons.

This only works correct for planar polygons but gives better results
overall.

8 years agoDivide by 3 instead of multiplying by variations of 0.333
Sergej Reich [Thu, 14 Feb 2013 17:35:43 +0000 (17:35 +0000)]
Divide by 3 instead of multiplying by variations of 0.333

Fixes small precision problems.

8 years agoCycles UI:
Thomas Dinges [Thu, 14 Feb 2013 17:09:19 +0000 (17:09 +0000)]
Cycles UI:
* "Use Nodes" for World, did not trigger Node Editor refresh.

8 years agoFurther fix for #34121: OSL + persistent images could crash in some cases still.
Brecht Van Lommel [Thu, 14 Feb 2013 16:48:43 +0000 (16:48 +0000)]
Further fix for #34121: OSL + persistent images could crash in some cases still.

8 years agoFix #34121: OSL + persistent images option was not freeing shader memory properly,
Brecht Van Lommel [Thu, 14 Feb 2013 16:11:47 +0000 (16:11 +0000)]
Fix #34121: OSL + persistent images option was not freeing shader memory properly,
causing memory to increase continuously during animation render.

8 years agoFix #34240: cycles material preview of sphere + sky had black sky, now it uses
Brecht Van Lommel [Thu, 14 Feb 2013 16:01:34 +0000 (16:01 +0000)]
Fix #34240: cycles material preview of sphere + sky had black sky, now it uses
the current scene world.

8 years agoFix: Tiled image painting in image editor was broken for float canvas.
Antony Riakiotakis [Thu, 14 Feb 2013 15:44:09 +0000 (15:44 +0000)]
Fix: Tiled image painting in image editor was broken for float canvas.
The mask was initialized using texture values, while it needed to be
opaque.

8 years agofix [#33949] T_ALT_TRANSFORM conflicts with "emulate 3 button mouse"
Campbell Barton [Thu, 14 Feb 2013 14:50:16 +0000 (14:50 +0000)]
fix [#33949] T_ALT_TRANSFORM conflicts with "emulate 3 button mouse"
finally last transform tool relying on alt has an alternative.

Sequencer slide which makes room for the placed strip by moving others - Pressing G a second time toggles this behavior.

8 years agoNew Hindi translation...
Bastien Montagne [Thu, 14 Feb 2013 14:41:04 +0000 (14:41 +0000)]
New Hindi translation...

8 years agoBug fix #34230
Ton Roosendaal [Thu, 14 Feb 2013 14:01:48 +0000 (14:01 +0000)]
Bug fix #34230

Error since July 2005, when DerivedMesh was introduced.

Vertex and Face duplicators now work for all modifiers. (not only deformers).
For example mirror and array modifier didn't work.

8 years agofix (for one case of...) [#33949] T_ALT_TRANSFORM conflicts with "emulate 3 button...
Campbell Barton [Thu, 14 Feb 2013 14:01:02 +0000 (14:01 +0000)]
fix (for one case of...) [#33949] T_ALT_TRANSFORM conflicts with "emulate 3 button mouse"

ShrinkFatten operator now uses scale key to toggle 'Even thickness' option.
With the default keymap this is Alt+S,S.

Added functionality so the header print can get the key used for the modal keymap, some other operators should make use of this too.

8 years agoAfter scroll bar commit motrack dopesheet went out of sync vertically
Sergey Sharybin [Thu, 14 Feb 2013 13:47:49 +0000 (13:47 +0000)]
After scroll bar commit motrack dopesheet went out of sync vertically

Shall be fine now.

8 years agomodify own changes to is_quad_convex_v3() to allow quads with a co-linear side to...
Campbell Barton [Thu, 14 Feb 2013 09:17:50 +0000 (09:17 +0000)]
modify own changes to is_quad_convex_v3() to allow quads with a co-linear side to be considered convex (as it did in last release).
this is needed so zero area faces be dealt with by beauty fill.

8 years agoMore nodes UI translation fixes.
Bastien Montagne [Thu, 14 Feb 2013 07:49:50 +0000 (07:49 +0000)]
More nodes UI translation fixes.

I *hate* this rna_nodetree_types.h file!

8 years agoupdate to operator running test, add option to randomize order, not reset blender...
Campbell Barton [Thu, 14 Feb 2013 05:10:12 +0000 (05:10 +0000)]
update to operator running test, add option to randomize order, not reset blender for each operator and set data attributes.

8 years agomisc changes
Campbell Barton [Thu, 14 Feb 2013 05:02:20 +0000 (05:02 +0000)]
misc changes
- update man page for new additions since last release.
- note that --start-console argument is windows only.
- correct own assertion in own recent commit.

8 years agofix for double clicking in the text editor not working usefully (double clicking...
Campbell Barton [Thu, 14 Feb 2013 03:03:12 +0000 (03:03 +0000)]
fix for double clicking in the text editor not working usefully (double clicking a pair chars would select 3 - one to the left).

8 years agofix own bug in weight gradient tool, need to check if mesh dverts will be overwritten,
Campbell Barton [Thu, 14 Feb 2013 02:21:12 +0000 (02:21 +0000)]
fix own bug in weight gradient tool, need to check if mesh dverts will be overwritten,

8 years agotweak vertex group clean limit, it couldn't be set to zero, and you may want to remov...
Campbell Barton [Thu, 14 Feb 2013 01:55:10 +0000 (01:55 +0000)]
tweak vertex group clean limit, it couldn't be set to zero, and you may want to remove only zero weights.

8 years agofix for crash with project paint when there is no brush (possible applying projection...
Campbell Barton [Thu, 14 Feb 2013 01:30:13 +0000 (01:30 +0000)]
fix for crash with project paint when there is no brush (possible applying projection from the camera only)

8 years agoadd missing NULL checks - could cause crashes in rare cases.
Campbell Barton [Thu, 14 Feb 2013 01:01:08 +0000 (01:01 +0000)]
add missing NULL checks - could cause crashes in rare cases.

8 years agobugfix: [#34220] Blenderplayer no longer working after r54395 commit [segfault due...
Dalai Felinto [Wed, 13 Feb 2013 23:09:12 +0000 (23:09 +0000)]
bugfix: [#34220] Blenderplayer no longer working after r54395 commit [segfault due to world not valid]
patch by Sergey Sharybin

note, I still find strange that world was valid and now it is not, but at least we no longer segfaults

8 years agoGah, forgot some ugly print...
Bastien Montagne [Wed, 13 Feb 2013 21:56:12 +0000 (21:56 +0000)]
Gah, forgot some ugly print...

8 years agoFix color sampling info at the bottom of the image editor not respecting DPI.
Brecht Van Lommel [Wed, 13 Feb 2013 19:01:33 +0000 (19:01 +0000)]
Fix color sampling info at the bottom of the image editor not respecting DPI.

(don't bother updating the RC for this, it's not an important fix)

8 years agoMade maya keymad deselect everything in cases nothing was selected with LMB
Sergey Sharybin [Wed, 13 Feb 2013 17:43:52 +0000 (17:43 +0000)]
Made maya keymad deselect everything in cases nothing was selected with LMB

The way it works now is:

- Border select is using TWEAK, for which you need to hold LMB down
  and move mouse. This prevents operators using RELEASE/CLICK events
  from being fired.
- LMB select is using RELEASE event, this is no selection happens
  before border if you do border select. And this prevents any
  operator uses CLICK event from being fired.
- Delect all happens by CLICK, which would be fired only in case no
  operators were handled with PRESS/RELEASE.

This is a bit cards-house, but this is how events currently works and
wouldn't want inventing something bigger now.

8 years agoFix for splitting startup and userpref:
Ton Roosendaal [Wed, 13 Feb 2013 16:52:14 +0000 (16:52 +0000)]
Fix for splitting startup and userpref:

The do-version handling for Userdef is outside file reading, which makes
it needed to store the file version in UserDef, so it gets the correct
version to handle.

Thanks Antonis R. for pointing at the omission!

Also removed the mindboggling define. If you do such, then make it
like "MAIN_VERSION_OLDER_THAN() or so.

In general version hacking could be limited much better... ask me
before even thinking to add one, most optimal is to do it in a way
it's not depending on a version ever - forward/backward compatible.

8 years agoFix #34226: cycles shadow pass got incorrectly influenced by world multiple
Brecht Van Lommel [Wed, 13 Feb 2013 16:46:18 +0000 (16:46 +0000)]
Fix #34226: cycles shadow pass got incorrectly influenced by world multiple
importance sampleing.

8 years agoCollada: Fixed import of textures with path settings relative to main import file
Gaia Clary [Wed, 13 Feb 2013 16:00:46 +0000 (16:00 +0000)]
Collada: Fixed import of textures with path settings relative to main import file

8 years agothere were more places hook modifier type wasn't checked and could crash - add utilit...
Campbell Barton [Wed, 13 Feb 2013 15:14:29 +0000 (15:14 +0000)]
there were more places hook modifier type wasn't checked and could crash - add utility function which doest this.

8 years agofix for missing typecheck on hook-assign operator.
Campbell Barton [Wed, 13 Feb 2013 15:03:36 +0000 (15:03 +0000)]
fix for missing typecheck on hook-assign operator.
fix for POSELIB_OT_pose_rename getting an enum as an int.

8 years agoupdate python module loading test.
Campbell Barton [Wed, 13 Feb 2013 14:11:04 +0000 (14:11 +0000)]
update python module loading test.

8 years agoFix physics' name not translated in main physics panel (reported on bf-translations...
Bastien Montagne [Wed, 13 Feb 2013 11:52:01 +0000 (11:52 +0000)]
Fix physics' name not translated in main physics panel (reported on bf-translations ML).

This also revealed another bug, as you could not explicitely set default context to text_ctxt UI func parameter (None is not accpeted by RNA string props), so I had to change default context from py POV to "*" instead of None.

Anyway, that physics UI translation remains weak, as the trick used here (helper func) prevents message extractor script to directly find them. Currently it works because specified labels are also defined elsewhere, but it would be nice to have some kind of "translation markers" in py code too (similar to our N_/CTX_N_ C macros, unfortunately python does not have preprocessing ;) )...

8 years agoFix cycles issue with BVH cache created with 64 bits and used for 32 bits binary,
Brecht Van Lommel [Wed, 13 Feb 2013 11:02:51 +0000 (11:02 +0000)]
Fix cycles issue with BVH cache created with 64 bits and used for 32 bits binary,
and vice versa.

8 years agoFix #34216: uv unwrap with some faces pinned to point the normals down will now
Brecht Van Lommel [Wed, 13 Feb 2013 10:38:05 +0000 (10:38 +0000)]
Fix #34216: uv unwrap with some faces pinned to point the normals down will now
automatically flip the unpinned faces to point down too, instead of trying to
unwrap them in the other direction and giving bad results.

If there's a mix of faces pinned up and down it will pick the direction with the
biggest area.

8 years agoAnd more mismatches between RNA struct UI names and type UI names in nodes... BSDF...
Bastien Montagne [Wed, 13 Feb 2013 09:07:34 +0000 (09:07 +0000)]
And more mismatches between RNA struct UI names and type UI names in nodes... BSDF nodes were not translated in UI.

8 years agoSCons: install blender thumbnailer next to blender binary.
Sergey Sharybin [Wed, 13 Feb 2013 08:55:03 +0000 (08:55 +0000)]
SCons: install blender thumbnailer next to blender binary.

Cmake already does this, and this will solve

8 years agofix: remove extra qualification in header
Gaia Clary [Wed, 13 Feb 2013 08:53:05 +0000 (08:53 +0000)]
fix: remove  extra qualification in header

8 years agoFix #34217: Maya keymap preset doesn't handle Shift-Click selection properly
Sergey Sharybin [Wed, 13 Feb 2013 08:11:35 +0000 (08:11 +0000)]
Fix #34217: Maya keymap preset doesn't handle Shift-Click selection properly

8 years agoCorrection for fix #34205: Zooming in rendered mode during update out of sync with...
Sergey Sharybin [Wed, 13 Feb 2013 07:50:41 +0000 (07:50 +0000)]
Correction for fix #34205: Zooming in rendered mode during update out of sync with intended zoom

Didn't initially notice one possibility when GPU render would fail here,

8 years agodont draw stippled lines without z-depth in vertex paint mode. (only weight paint).
Campbell Barton [Wed, 13 Feb 2013 05:48:08 +0000 (05:48 +0000)]
dont draw stippled lines without z-depth in vertex paint mode. (only weight paint).

8 years agostyle cleanup
Campbell Barton [Wed, 13 Feb 2013 05:10:38 +0000 (05:10 +0000)]
style cleanup

8 years agoremove redundant if statement.
Campbell Barton [Wed, 13 Feb 2013 05:07:46 +0000 (05:07 +0000)]
remove redundant if statement.

8 years agobmesh operators exceptions were not cleared after raising as a python exception.
Campbell Barton [Wed, 13 Feb 2013 04:55:05 +0000 (04:55 +0000)]
bmesh operators exceptions were not cleared after raising as a python exception.
also clear before calling the operator.

8 years agocorrect rna identifiers
Campbell Barton [Wed, 13 Feb 2013 04:04:14 +0000 (04:04 +0000)]
correct rna identifiers
- compositor viewer: use_straight_alpha -> use_alpha
- bevel tool: percent -> offset

8 years agorevert own commit, caused regression - hanging on triangulation [#34214].
Campbell Barton [Wed, 13 Feb 2013 03:20:30 +0000 (03:20 +0000)]
revert own commit, caused regression - hanging on triangulation [#34214].

Postponing further changes for now, too risky before release when unexpected cases can cause eternal loop.

8 years agomake is_quad_convex_v3() more strict, check if normal is OK before using as a rotatio...
Campbell Barton [Wed, 13 Feb 2013 03:13:12 +0000 (03:13 +0000)]
make is_quad_convex_v3() more strict, check if normal is OK before using as a rotation axis.
make is_quad_convex_v2,3() check for ISECT_LINE_LINE_CROSS intersection (that the lines actually cross each other).

8 years agoSmall tweak in event debug printing:
Ton Roosendaal [Tue, 12 Feb 2013 19:08:04 +0000 (19:08 +0000)]
Small tweak in event debug printing:

- missing print for case event gets handled AND passed on (selecting)

8 years agoFixed importing of shapekey names: name is now taken from geometry name instead of...
Gaia Clary [Tue, 12 Feb 2013 17:52:18 +0000 (17:52 +0000)]
Fixed importing of shapekey names: name is now taken from geometry name instead of deriving it from the mesh name

8 years agoComposite node "Alpha over" didn't allow to be dragged wide enough.
Ton Roosendaal [Tue, 12 Feb 2013 17:39:44 +0000 (17:39 +0000)]
Composite node "Alpha over" didn't allow to be dragged wide enough.

8 years agoUpdate to how similar messages matching is handled when updating po files from pot...
Bastien Montagne [Tue, 12 Feb 2013 17:32:54 +0000 (17:32 +0000)]
Update to how similar messages matching is handled when updating po files from pot one (gain something like 20% in heavy update situations, and save a nice bunch of memory!).

8 years agoFix file editor not properly scaling with DPI, this was not implemented yet.
Brecht Van Lommel [Tue, 12 Feb 2013 17:09:02 +0000 (17:09 +0000)]
Fix file editor not properly scaling with DPI, this was not implemented yet.
Still todo is high resolution file icons as they look a bit pixelated now.

8 years agoFix #34126: report list memory leak when calling operator from python and the
Brecht Van Lommel [Tue, 12 Feb 2013 16:04:58 +0000 (16:04 +0000)]
Fix #34126: report list memory leak when calling operator from python and the
operator context poll failing.

8 years agoFix for own multilayer EXR fix, should not have caused any issues might as well
Brecht Van Lommel [Tue, 12 Feb 2013 15:58:06 +0000 (15:58 +0000)]
Fix for own multilayer EXR fix, should not have caused any issues might as well
make sure it works if this function gets called from other places.

8 years agoBug fix #34213 (2)
Ton Roosendaal [Tue, 12 Feb 2013 15:51:05 +0000 (15:51 +0000)]
Bug fix #34213 (2)

Adding non-RGBA float buffers as texture crashes MipMap code.
Images with less than 4 channels not supported (yet). Not sure
if we ever should even... normals, Z, vectors, UV, Index, all
don't like downsampling.

8 years agoPreview image render was missing image buffer release
Sergey Sharybin [Tue, 12 Feb 2013 15:49:48 +0000 (15:49 +0000)]
Preview image render was missing image buffer release

Reported by Ton in IRC, thanks! Was hunting this one for ages!

8 years agoFix render layer previous/next buttons not respecting DPI.
Brecht Van Lommel [Tue, 12 Feb 2013 14:59:00 +0000 (14:59 +0000)]
Fix render layer previous/next buttons not respecting DPI.

8 years agoFix #34213: crash loading openexr multilayer with use alpha disabled.
Brecht Van Lommel [Tue, 12 Feb 2013 14:58:58 +0000 (14:58 +0000)]
Fix #34213: crash loading openexr multilayer with use alpha disabled.

8 years agoFix cycles not using SSE3 kernel after recent, order with SSE2 should be switched,
Brecht Van Lommel [Tue, 12 Feb 2013 14:58:46 +0000 (14:58 +0000)]
Fix cycles not using SSE3 kernel after recent, order with SSE2 should be switched,
pointed out by Chad Fraleigh.

8 years agorigidbody: No need to update mass when changing rigid body type
Sergej Reich [Tue, 12 Feb 2013 14:45:59 +0000 (14:45 +0000)]
rigidbody: No need to update mass when changing rigid body type

8 years agorigidbody: Don't cancel add operator if rigid body already exists
Sergej Reich [Tue, 12 Feb 2013 14:45:57 +0000 (14:45 +0000)]
rigidbody: Don't cancel add operator if rigid body already exists

In some cases objects might have rigid bodies but aren't in the rigid
body group, just add objects to the group then.

Also allow changing the rigid body type by using the add acive/passive
buttons. This avoids having to remove objects just to change type.

8 years agorigidbody: Clean up wm notifiers in rigid body operators
Sergej Reich [Tue, 12 Feb 2013 14:45:55 +0000 (14:45 +0000)]
rigidbody: Clean up wm notifiers in rigid body operators

Remore group notifiers, they're already sent by add/remove group operators.
Add pointcache notifiers.

Fixes UI not being updated properly in some cases.

8 years agoReports #34042 and #33749
Ton Roosendaal [Tue, 12 Feb 2013 14:42:46 +0000 (14:42 +0000)]
Reports #34042 and #33749

Tweak for new option for Relative Bone parenting
(which transforms child object based on rest pose, so you can change bones
in editmode to define pivot)

In the original commit it was made default, but that was too invisble for
users. Now it's an option in the Make Parent menu to choose. Communicates
a new feature better.

8 years agoAnd we now have a valid korean translation!
Bastien Montagne [Tue, 12 Feb 2013 14:36:08 +0000 (14:36 +0000)]
And we now have a valid korean translation!

8 years agoFix some (quite harmless) use of uninitialized memory reported by valgrind.
Brecht Van Lommel [Tue, 12 Feb 2013 13:48:04 +0000 (13:48 +0000)]
Fix some (quite harmless) use of uninitialized memory reported by valgrind.

8 years agoFix #34205: Cycles: Zooming in rendered mode during update out of sync with intended...
Sergey Sharybin [Tue, 12 Feb 2013 13:06:52 +0000 (13:06 +0000)]
Fix #34205: Cycles: Zooming in rendered mode during update out of sync with intended zoom

Made sure no pause_cond.wait() happens at the same time as session as resetting.

8 years agoFix incorrect display of Sequence layer when rendering animation and
Sergey Sharybin [Tue, 12 Feb 2013 11:45:16 +0000 (11:45 +0000)]
Fix incorrect display of Sequence layer when rendering animation and
float/byte render results were mixed.

8 years agoSCons: no need to do data-to-c when building cudakernels only
Sergey Sharybin [Tue, 12 Feb 2013 11:44:02 +0000 (11:44 +0000)]
SCons: no need to do data-to-c when building cudakernels only

8 years agoreport [#33731] Fastorigin addon crashes on mesh.update()
Campbell Barton [Tue, 12 Feb 2013 11:04:52 +0000 (11:04 +0000)]
report [#33731] Fastorigin addon crashes on mesh.update()
add a warning when python leaves the modified mesh without calling bmesh.update_edit_mesh()s.
this doesn't fix the crash but points to the likely cause.