6 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.

6 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!

6 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.

6 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.

6 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

6 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.

6 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!).

6 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.

6 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)

6 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!

6 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.

6 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
    + 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().

6 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.

6 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.

6 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...

6 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!

6 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.

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

6 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.

6 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.

6 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.

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

6 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

6 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.

6 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.

6 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.

6 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.

6 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.

6 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

6 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.

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

6 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.

6 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.

6 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.

6 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.

6 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!

6 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.

6 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.

6 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).

6 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,

6 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.

6 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)

6 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.

6 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

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

6 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)

6 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.

6 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

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.

6 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.

6 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

6 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.

6 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.

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

6 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 ;) )...

6 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.

6 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.

6 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.

6 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

6 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

6 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

6 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,

6 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).

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

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

6 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.

6 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

6 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.

6 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).

6 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)

6 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

6 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.

6 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!).

6 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.

6 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.

6 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.

6 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.

6 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!

6 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.

6 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.

6 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.

6 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

6 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.

6 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.

6 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.

6 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!

6 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.

6 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.

6 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.

6 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

6 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.

6 years agofix for own commit r54482, PROP_DISTANCE was being checked for by radial control...
Campbell Barton [Tue, 12 Feb 2013 10:33:04 +0000 (10:33 +0000)]
fix for own commit r54482, PROP_DISTANCE was being checked for by radial control operator. now allow PROP_NONE and treat it as a distance.

6 years agoFix #34209: Texture preview in brush settings does not update
Sergey Sharybin [Tue, 12 Feb 2013 10:07:37 +0000 (10:07 +0000)]
Fix #34209: Texture preview in brush settings does not update

Was a regression since Cycles preview implementation.

Texture preview would be fine now if Blender Internal render is used,
but seems it's not impossible to support textures preview if Cycles
is set as render engine.

Would check on this a bit further.

6 years agoBuildbot: revert r54465 and r54466 -- issue was not caused by
Sergey Sharybin [Tue, 12 Feb 2013 08:30:12 +0000 (08:30 +0000)]
Buildbot: revert r54465 and r54466 -- issue was not caused by
crosscompilation, but was caused by some bugs in toolkit itself.

Shall be all fine now (at least it is on my laptop now).

Let give it another try!

6 years agoAdd translation of stats/info string.
Bastien Montagne [Tue, 12 Feb 2013 07:32:17 +0000 (07:32 +0000)]
Add translation of stats/info string.

6 years agoAdded a missing space (between separator and face count in object mode)
Joshua Leung [Tue, 12 Feb 2013 06:24:58 +0000 (06:24 +0000)]
Added a missing space (between separator and face count in object mode)

6 years agofix [#34198] Scene unit size and dyntopo detail size
Campbell Barton [Tue, 12 Feb 2013 05:09:35 +0000 (05:09 +0000)]
fix [#34198] Scene unit size and dyntopo detail size
there were 2 bugs here.
- int buttons scaling values on input but not on display.
- pixel distances were using PROP_DISTANCE subtype - which isn't correct.

added assert incase PROP_INT values have PROP_DISTANCE subtype applied in future.

6 years agofix for own regression [#34096] ocean sim vertex color bug
Campbell Barton [Tue, 12 Feb 2013 01:52:55 +0000 (01:52 +0000)]
fix for own regression [#34096] ocean sim vertex color bug
Caused by my assumption that alpha wasn't used for vertex colors.

Infact it is used by blender-internal rendering, but typically only for blending strand particles.
Updated comments to note this.

6 years agofix [#34203] Editing bones, parenting, blender quits
Campbell Barton [Tue, 12 Feb 2013 01:20:14 +0000 (01:20 +0000)]
fix [#34203] Editing bones, parenting, blender quits
'Set Inverse' was mixing up pose/object constraints

6 years agocode cleanup: some style edits, also allow mul_v2_m2v2() to have the same value as...
Campbell Barton [Tue, 12 Feb 2013 00:35:31 +0000 (00:35 +0000)]
code cleanup: some style edits, also allow mul_v2_m2v2() to have the same value as in-out, since this is a convention for existing matrix functions.

6 years agoOld bug fix: Uv smart stitch failed to detect angle if islands were
Antony Riakiotakis [Mon, 11 Feb 2013 22:52:13 +0000 (22:52 +0000)]
Old bug fix: Uv smart stitch failed to detect angle if islands were
rotated close to 180 degrees and there were edges both below and above
the 180 degree threshhold. Separating and averaging the negative and
positive angles seems to solve the issue making the tool a bit more
robust ;)