blender.git
6 years agocmake: remove set_lib_path macro
Campbell Barton [Mon, 17 Jun 2013 18:15:56 +0000 (18:15 +0000)]
cmake: remove set_lib_path macro

6 years agoCMake / vc2010:
Thomas Dinges [Mon, 17 Jun 2013 18:00:38 +0000 (18:00 +0000)]
CMake / vc2010:
* Remove vc2010 support from cmake.

There is some "if(MSVC10)" left in extern - ceres, but will leave that for Sergey. :)

6 years agomeasure distance across faces when checking for proportional distance connectivity...
Campbell Barton [Mon, 17 Jun 2013 17:25:02 +0000 (17:25 +0000)]
measure distance across faces when checking for proportional distance connectivity (gives smoother results)

6 years agofix for editmesh transform connected,
Campbell Barton [Mon, 17 Jun 2013 16:55:05 +0000 (16:55 +0000)]
fix for editmesh transform connected,
the distance checks could get into a feedback loop so that the result depended on the order of verts/edges.

now you can randomize vert/edge/faces and get exactly the same results.

also made some internal improvements,
- used fixed sized arrays (no need to realloc).
- use vertex tag flags rather then a visit-hash.
- remove 'tots' array that did nothing (not sure why it was added).

6 years agoreduce sqrt's calls in set_prop_dist().
Campbell Barton [Mon, 17 Jun 2013 14:37:12 +0000 (14:37 +0000)]
reduce sqrt's calls in set_prop_dist().

6 years agoRemove static variables from mball module
Sergey Sharybin [Mon, 17 Jun 2013 11:18:29 +0000 (11:18 +0000)]
Remove static variables from mball module

Moved all the static variables into a PROCESS
structure which is now passing all over to where
static variables used to be used.

There's still one static variable which is
cubetable, but it's being initialized once
and then used read-only. Maybe we'll need
to move cubetable initialization to blender
startup, but that could wait a bit for now.

For users it means BI rendered viewport
wouldn't crash when using metaballs.

--
svn merge -r57515:57516 ^/branches/soc-2013-depsgraph_mt

6 years agoUsual UI messages style edits...
Bastien Montagne [Mon, 17 Jun 2013 10:01:35 +0000 (10:01 +0000)]
Usual UI messages style edits...

6 years agoBGE: Fixing the python profiling information so that bge.logic.getProfileInfo() retur...
Mitchell Stokes [Mon, 17 Jun 2013 06:40:39 +0000 (06:40 +0000)]
BGE: Fixing the python profiling information so that bge.logic.getProfileInfo() returns information even if Show Framerate and Profile is not enabled.

6 years agopatch [#35765] Improve performance during select object in viewport. Up to 3x speedup.
Campbell Barton [Mon, 17 Jun 2013 06:17:19 +0000 (06:17 +0000)]
patch [#35765] Improve performance during select object in viewport. Up to 3x speedup.
from Alex Babahin (tamerlan311)

replace goto's with static functions.

6 years agoOnly printing errors.
Nathan Letwory [Sun, 16 Jun 2013 20:36:34 +0000 (20:36 +0000)]
Only printing errors.

(No news is good news).

6 years agoSince upgrade to SCons 2.3.0 a small change is needed to ensure 32bit is targeted...
Nathan Letwory [Sun, 16 Jun 2013 20:34:29 +0000 (20:34 +0000)]
Since upgrade to SCons 2.3.0 a small change is needed to ensure 32bit is targeted properly when
building 32bit Blender with 64bit compiler installed as well (MSVC).

6 years agoFix for building Blender with OSL, and no OpenEXR headers in standard paths (like...
Bastien Montagne [Sun, 16 Jun 2013 18:59:50 +0000 (18:59 +0000)]
Fix for building Blender with OSL, and no OpenEXR headers in standard paths (like /usr/include/OpenEXR).

As OSL headers mix #include <OpenEXR/foo.h> and #include <foo.h>, we need both /path/to/openexr/include and /path/to/openexr/include/OpenEXR include paths... :/

Issue investigated by doug65536 on IRC, thanks.

6 years agoAttempt to fix #35548:
Antony Riakiotakis [Sun, 16 Jun 2013 17:07:07 +0000 (17:07 +0000)]
Attempt to fix #35548:

Use nearest edge instead of nearest vertex for UV island selection, or
you may get a far away UV island that happens to have a vertex nearby.

6 years agoImproved layout of Vertex Weights panel, added option to change active vgroup
Gaia Clary [Sun, 16 Jun 2013 15:44:17 +0000 (15:44 +0000)]
Improved layout of Vertex Weights panel, added option to change active vgroup

6 years agoFix for the DensityF0D function not working as expected when the Z pass was not avail...
Tamito Kajiyama [Sun, 16 Jun 2013 15:08:25 +0000 (15:08 +0000)]
Fix for the DensityF0D function not working as expected when the Z pass was not available.

6 years agoFix #35774 Confusing Text in Texture Paint Panel
Antony Riakiotakis [Sun, 16 Jun 2013 14:54:14 +0000 (14:54 +0000)]
Fix #35774 Confusing Text in Texture Paint Panel

A simple copy-paste error.

6 years agoVertex weights: Added delete weight from vertex group
Gaia Clary [Sun, 16 Jun 2013 14:41:07 +0000 (14:41 +0000)]
Vertex weights: Added delete weight from vertex group

6 years agorename world_to_camera -> world_to_camera_view
Campbell Barton [Sun, 16 Jun 2013 14:35:15 +0000 (14:35 +0000)]
rename world_to_camera -> world_to_camera_view

6 years agouse layout engine for vertex weights panel.
Campbell Barton [Sun, 16 Jun 2013 13:30:37 +0000 (13:30 +0000)]
use layout engine for vertex weights panel.

6 years agoComplete fix for [#35769] The “show texture in texture tab” button in a modifier...
Bastien Montagne [Sun, 16 Jun 2013 13:13:42 +0000 (13:13 +0000)]
Complete fix for [#35769] The “show texture in texture tab” button in a modifier does not show up until the user manually shows the texture in the Texture tab (and better fix for [#35741] Material shows WORLD texture_context by default).

Simply recompute texture context on every redraw, like already done for sbuts->texuser (also called texture context :/ ).

Also allows simplification, buttons_check_texture_context can be merged back into set_texture_context...

6 years agoNew icon: CAMERA_STEREO
Dalai Felinto [Sun, 16 Jun 2013 11:14:07 +0000 (11:14 +0000)]
New icon: CAMERA_STEREO

Adding only the .svg file, the PNG can make once the multiview branch is merged.
I wanted to commit this to avoid having conflicts in the .svg file if
someone works on new icons too.

The new icon is at X-23

6 years agoFix [#35741] Material shows WORLD texture_context by default.
Bastien Montagne [Sun, 16 Jun 2013 09:44:17 +0000 (09:44 +0000)]
Fix [#35741] Material shows WORLD texture_context by default.

Now also check previous button context, when switching. This way, if the previous one was a texture one, and become valid after the last switch (e.g. a material added to a new object), relevant texture context can still be set.

Note this commit also partially fixes [#35769] The “show texture in texture tab” button in a modifier does not show up until the user manually shows the texture in the Texture tab (full fix of this one will probably implies to always have a valid ButsContextTexture [sbuts->texuser]...).

6 years agoreplace strcat with BLI_strcpy_rlen in draw_selected_name(), view3d function.
Campbell Barton [Sun, 16 Jun 2013 09:14:24 +0000 (09:14 +0000)]
replace strcat with BLI_strcpy_rlen in draw_selected_name(), view3d function.
also fix for incorrect flag checking for shape key pin.

6 years agoadd BLI_strcpy_rlen, replace strcat, which was used in misleading way.
Campbell Barton [Sun, 16 Jun 2013 08:29:02 +0000 (08:29 +0000)]
add BLI_strcpy_rlen, replace strcat, which was used in misleading way.

6 years agoresolve [#33374] Extrude and mirror editing
Campbell Barton [Sun, 16 Jun 2013 05:35:44 +0000 (05:35 +0000)]
resolve [#33374] Extrude and mirror editing

mirror editing option was only added to extrude so mirror editing would always be disabled.
the option is now hidden to avoid confusing users.

6 years agofix automerge + mirror, previously only the selected verts would auto-merge.
Campbell Barton [Sun, 16 Jun 2013 05:13:12 +0000 (05:13 +0000)]
fix automerge + mirror, previously only the selected verts would auto-merge.

6 years agoreduce property lookups on transform init.
Campbell Barton [Sun, 16 Jun 2013 04:37:39 +0000 (04:37 +0000)]
reduce property lookups on transform init.

6 years agowhen setting the subframe for large frames (250,000+) the precision was very poor.
Campbell Barton [Sun, 16 Jun 2013 04:06:38 +0000 (04:06 +0000)]
when setting the subframe for large frames (250,000+) the precision was very poor.
now use double precision when combining the frame+subframe.

6 years agodon't show the 3d view transform panel when theres no active object.
Campbell Barton [Sun, 16 Jun 2013 03:31:15 +0000 (03:31 +0000)]
don't show the 3d view transform panel when theres no active object.

6 years agoFixed the feature edge selection by Freestyle face marks to properly account for...
Tamito Kajiyama [Sun, 16 Jun 2013 00:15:05 +0000 (00:15 +0000)]
Fixed the feature edge selection by Freestyle face marks to properly account for border edges.

6 years agoFix for Freestyle face marks incorrectly reset when feature edges are split at 2D...
Tamito Kajiyama [Sun, 16 Jun 2013 00:14:28 +0000 (00:14 +0000)]
Fix for Freestyle face marks incorrectly reset when feature edges are split at 2D intersections.
Problem report by an anonymous forum user with a .blend file for reproducing the bug, thanks!

6 years agoSet up OurSpawn for MinGW compile environment on Windows.
Nathan Letwory [Sat, 15 Jun 2013 21:20:06 +0000 (21:20 +0000)]
Set up OurSpawn for MinGW compile environment on Windows.

6 years agoFix [#35728] "Load Factory Settings" changes temp fonder to "/temp/\"
Nathan Letwory [Sat, 15 Jun 2013 20:12:16 +0000 (20:12 +0000)]
Fix [#35728] "Load Factory Settings" changes temp fonder to "/temp/\"

This was actually being reset to "/tmp\".

Initialisation for the temp dir was missing after the userpref reload.

6 years agoBug fix #35749
Ton Roosendaal [Sat, 15 Jun 2013 15:39:20 +0000 (15:39 +0000)]
Bug fix #35749

Image Editor: "Replace Image" operator didn't refresh icon for image.

6 years agoBugfix #35747
Ton Roosendaal [Sat, 15 Jun 2013 15:10:21 +0000 (15:10 +0000)]
Bugfix #35747

Lasso select could crash if there was an Armature in PoseMode somewhere.
Issue also in previous release(s).

6 years agoFix #35768: crash in with "free image textures" option and 3D viewport with textured
Brecht Van Lommel [Sat, 15 Jun 2013 14:01:16 +0000 (14:01 +0000)]
Fix #35768: crash in with "free image textures" option and 3D viewport with textured
draw mode open. OpenGL texture free needs to happen in the main thread, but it was
freeing a copy of the image datablock. I can't understand how this code ever worked,
probably it never did.

6 years agoBuildbot: use relative path for redistributable dlls on windows.
Brecht Van Lommel [Sat, 15 Jun 2013 14:01:12 +0000 (14:01 +0000)]
Buildbot: use relative path for redistributable dlls on windows.

6 years agoshow dissolve edge/vert/face in the delete menu, irrespective of the current mode.
Campbell Barton [Sat, 15 Jun 2013 13:33:28 +0000 (13:33 +0000)]
show dissolve edge/vert/face in the delete menu, irrespective of the current mode.

6 years agoAdded Missing check if active object is visible
Gaia Clary [Sat, 15 Jun 2013 12:57:46 +0000 (12:57 +0000)]
Added Missing check if active object is visible

6 years agomake active vertex more apparent in weight paint mode
Gaia Clary [Sat, 15 Jun 2013 12:11:38 +0000 (12:11 +0000)]
make active vertex more apparent in weight paint mode

6 years agodisplay active vertex in weight paint mode. also correct NULL free.
Campbell Barton [Sat, 15 Jun 2013 11:02:36 +0000 (11:02 +0000)]
display active vertex in weight paint mode. also correct NULL free.

6 years agoAdded support for Vertex Weight panel in weight Paint Mode
Gaia Clary [Sat, 15 Jun 2013 10:18:16 +0000 (10:18 +0000)]
Added support for Vertex Weight panel in weight Paint Mode

6 years agoBuildbot: use 1 thread for windows builds.
Brecht Van Lommel [Sat, 15 Jun 2013 10:16:01 +0000 (10:16 +0000)]
Buildbot: use 1 thread for windows builds.

6 years agoremoved unnecessary return statement
Gaia Clary [Sat, 15 Jun 2013 09:53:59 +0000 (09:53 +0000)]
removed unnecessary return statement

6 years agoadded basic utility functions for working with mselect (selected mesh elements)
Gaia Clary [Sat, 15 Jun 2013 09:42:58 +0000 (09:42 +0000)]
added basic utility functions for working with mselect (selected mesh elements)

6 years agofix for recent changes in solidify, normals were OK but customdata for loops wasnt.
Campbell Barton [Sat, 15 Jun 2013 08:59:54 +0000 (08:59 +0000)]
fix for recent changes in solidify, normals were OK but customdata for loops wasnt.

6 years agoAdd USE_PYTHON=OFF and USE_OCIO=OFF to OIIO compilation (we do not need either of...
Bastien Montagne [Sat, 15 Jun 2013 08:56:04 +0000 (08:56 +0000)]
Add USE_PYTHON=OFF and USE_OCIO=OFF to OIIO compilation (we do not need either of those).

6 years agoAdded a 'move' function to node tree socket api (similar to node.inputs/outputs.move...
Lukas Toenne [Sat, 15 Jun 2013 07:06:09 +0000 (07:06 +0000)]
Added a 'move' function to node tree socket api (similar to node.inputs/outputs.move). This allows moving sockets in a node group interface from python without breaking external links.

6 years agocode cleanup: remove checks for (select == LEFTMOUSE), this happened to work because...
Campbell Barton [Sat, 15 Jun 2013 06:03:15 +0000 (06:03 +0000)]
code cleanup: remove checks for (select == LEFTMOUSE), this happened to work because its defined at 1, but confusingly checks against RIGHTMOUSE fail.

6 years agoFix for splitting at material boundaries not correctly working with border lines.
Tamito Kajiyama [Fri, 14 Jun 2013 20:43:54 +0000 (20:43 +0000)]
Fix for splitting at material boundaries not correctly working with border lines.

Problem report by Charblaze in the BlenderArtists.org Freestyle thread, thanks!

6 years agofix for own error in recent solitify refactor (r57402), face flip check was incorrect.
Campbell Barton [Fri, 14 Jun 2013 16:10:32 +0000 (16:10 +0000)]
fix for own error in recent solitify refactor (r57402), face flip check was incorrect.

6 years agoCode cleanup: removed unused B_BUTSPREVIEW event, and moved back rna_SpaceProperties_...
Bastien Montagne [Fri, 14 Jun 2013 15:48:03 +0000 (15:48 +0000)]
Code cleanup: removed unused B_BUTSPREVIEW event, and moved back rna_SpaceProperties_texture_context_itemf() together with its fellow functions.

6 years agofix [#35694] Lattice; Display Type: "Bounds" not working
Campbell Barton [Fri, 14 Jun 2013 15:11:28 +0000 (15:11 +0000)]
fix [#35694] Lattice; Display Type: "Bounds" not working

6 years agofix for building c++ rna api with recently added smoothgroup api call.
Campbell Barton [Fri, 14 Jun 2013 14:57:35 +0000 (14:57 +0000)]
fix for building c++ rna api with recently added smoothgroup api call.

6 years agoCycles:
Thomas Dinges [Fri, 14 Jun 2013 14:29:00 +0000 (14:29 +0000)]
Cycles:
* Style cleanup for M_PI constants.
* Move Wireframe node into __EXTRA_NODES__ define

6 years agoFix for
Jeroen Bakker [Fri, 14 Jun 2013 13:56:00 +0000 (13:56 +0000)]
Fix for
 * [#35724] Backdrop zoom can be set to a very small value, making the backdrop disapear.

There were checks in the drawnode that needed to be placed in the readfile.
The checks checked if the zoomlevel was 0.0, then it was defaulted to 1.0, but the zoomvalue had a minimum limit of 0.01, hence it did not work.
Moved the check to the readfile and checked for all values smaller then 0.02. These values are then reset to 1.0

Jeroen & Monique
 - At Mind -

6 years agoexpose smooth group calculation to python as Mesh.calc_smooth_groups()
Campbell Barton [Fri, 14 Jun 2013 09:59:09 +0000 (09:59 +0000)]
expose smooth group calculation to python as Mesh.calc_smooth_groups()

6 years agoAdded a read-only dimensions property for Nodes. This returns the actual node size...
Lukas Toenne [Fri, 14 Jun 2013 08:59:21 +0000 (08:59 +0000)]
Added a read-only dimensions property for Nodes. This returns the actual node size as calculated in the node_update functions. It can be useful for node layout scripts, since the width/height properties
are not an accurate representation of the actual node size which is determined by the uiLayout.

Please note that the dimensions calculation depends on the drawing of nodes, so it may not get updated if nodes are not visible in any editor. Also the node height in particular can change dramatically
based on previews, visible sockets, etc.

6 years agoutility function for calculating smooth groups from sharp edges: BKE_mesh_calc_smooth...
Campbell Barton [Fri, 14 Jun 2013 08:28:27 +0000 (08:28 +0000)]
utility function for calculating smooth groups from sharp edges: BKE_mesh_calc_smoothgroups

6 years agoutility function BKE_mesh_edge_poly_map_create(), currently unused.
Campbell Barton [Fri, 14 Jun 2013 07:15:38 +0000 (07:15 +0000)]
utility function BKE_mesh_edge_poly_map_create(), currently unused.

6 years agocode cleanup: reduce pointer indirection for mesh-map creation functions.
Campbell Barton [Fri, 14 Jun 2013 06:34:37 +0000 (06:34 +0000)]
code cleanup: reduce pointer indirection for mesh-map creation functions.

6 years agocode cleanup: make_edges_mdata() reduce some sign conversion, pointer indirection.
Campbell Barton [Fri, 14 Jun 2013 06:15:30 +0000 (06:15 +0000)]
code cleanup: make_edges_mdata() reduce some sign conversion, pointer indirection.

6 years agoremove 'dissolve_edge_loop' bmesh operator, edgeloop dissolve replaces this now.
Campbell Barton [Fri, 14 Jun 2013 04:04:35 +0000 (04:04 +0000)]
remove 'dissolve_edge_loop' bmesh operator, edgeloop dissolve replaces this now.

6 years agoChange edgeloop delete to use dissolve, fixes bug [#35738].
Campbell Barton [Fri, 14 Jun 2013 03:04:36 +0000 (03:04 +0000)]
Change edgeloop delete to use dissolve, fixes bug [#35738].

Was using edge-slide & remove-doubles but this was error prone since remove doubles could fail in some cases or find doubles where it shouldn't (with very small scale objects).

This gives more predictable behavior when the edges of a loop wouldnt slide (in that case they would just drag over to one of the sides with no user control)
and multiple edge loops work better too. eg:
- http://www.graphicall.org/ftp/ideasman42/edge_loop_del_update.png

6 years agobmesh edge dissolve: add option use_face_split (matching vertex dissolve option),
Campbell Barton [Fri, 14 Jun 2013 02:30:40 +0000 (02:30 +0000)]
bmesh edge dissolve: add option use_face_split (matching vertex dissolve option),
useful to avoid odd shaped ngons surrounding dissolved edges.

6 years agoBGE: Fixing a bug that caused KX_GameObject.localTransform to give incorrect results.
Mitchell Stokes [Thu, 13 Jun 2013 22:15:44 +0000 (22:15 +0000)]
BGE: Fixing a bug that caused KX_GameObject.localTransform to give incorrect results.

6 years agoFix blender internal showing SSS preprocessing status message even if there isn't
Brecht Van Lommel [Thu, 13 Jun 2013 18:29:56 +0000 (18:29 +0000)]
Fix blender internal showing SSS preprocessing status message even if there isn't
any SSS material in the scene.

6 years agoFix #35634: weight paint did not do z-buffer culling anymore on Windows after recent...
Brecht Van Lommel [Thu, 13 Jun 2013 17:11:09 +0000 (17:11 +0000)]
Fix #35634: weight paint did not do z-buffer culling anymore on Windows after recent change to size of bool.

6 years agofixes for using scaled cameras
Campbell Barton [Thu, 13 Jun 2013 15:09:32 +0000 (15:09 +0000)]
fixes for using scaled cameras
- ED_view3d_from_m4() got incorrect rotation from scaled cameras, was noticable with smoothview transitions.
- when you lock the camera to the view, any view edits would reset the cameras scale to 1.
- another problem with view locking if the camera was scaled and had a parent, the parent would be transformed incorrectly.
- fly mode was chaning object scale a little over time, now restore after applying scale so it never changes.

6 years agoFix #35664: blender internal material index pass + ztransp + multiple materials
Brecht Van Lommel [Thu, 13 Jun 2013 15:02:42 +0000 (15:02 +0000)]
Fix #35664: blender internal material index pass + ztransp + multiple materials
assigned to a mesh did not work correct.

6 years agoFix #35735: blender internal viewport rendering was missing SSS update when
Brecht Van Lommel [Thu, 13 Jun 2013 14:40:22 +0000 (14:40 +0000)]
Fix #35735: blender internal viewport rendering was missing SSS update when
changing angle of view.

6 years agoFix #35730: cycles not rendering dupliverted metaball, needs another special
Brecht Van Lommel [Thu, 13 Jun 2013 14:33:18 +0000 (14:33 +0000)]
Fix #35730: cycles not rendering dupliverted metaball, needs another special
exception.

6 years agoRephrased error message for clarity
Gaia Clary [Thu, 13 Jun 2013 14:17:02 +0000 (14:17 +0000)]
Rephrased error message for clarity

6 years agominor edits to world_to_camera() utility function, include Z so you can tell if the...
Campbell Barton [Thu, 13 Jun 2013 14:07:36 +0000 (14:07 +0000)]
minor edits to world_to_camera() utility function, include Z so you can tell if the points in font of the camera and avoid divide by zero.

6 years agoFix #35729: cycles normal maps not showing properly in preview render.
Brecht Van Lommel [Thu, 13 Jun 2013 13:55:05 +0000 (13:55 +0000)]
Fix #35729: cycles normal maps not showing properly in preview render.

6 years agohandy function for getting the 2d camera coords for a worldspace location.
Campbell Barton [Thu, 13 Jun 2013 13:51:01 +0000 (13:51 +0000)]
handy function for getting the 2d camera coords for a worldspace location.

 bpy_extras.object_utils.world_to_camera(scene, obj, coord)

6 years agoFix #35733: lamps on render layers that are both excluded and used for masking
Brecht Van Lommel [Thu, 13 Jun 2013 13:09:32 +0000 (13:09 +0000)]
Fix #35733: lamps on render layers that are both excluded and used for masking
should not be used, same as emissive meshes.

6 years agocode cleanup: also fix crash in GPU_state_print(). and confine to debug mode builds.
Campbell Barton [Thu, 13 Jun 2013 11:59:28 +0000 (11:59 +0000)]
code cleanup: also fix crash in GPU_state_print(). and confine to debug mode builds.

6 years agoAdded NULL check for socket type make_socket_interface
Sergey Sharybin [Thu, 13 Jun 2013 11:49:22 +0000 (11:49 +0000)]
Added NULL check for socket type make_socket_interface

Without this check it's easy to crash blender by passing
non-existing socket type to sockets.new() function.

6 years agofix for pythons __dir__ returning registrable functions on class instances (which...
Campbell Barton [Thu, 13 Jun 2013 11:35:25 +0000 (11:35 +0000)]
fix for pythons __dir__ returning registrable functions on class instances (which may not have the functions defined).
gave odd behavior of including members in __dir__ that couldn't getattr()

6 years agoRemoved the Material Boundary option from the edge detection options in
Tamito Kajiyama [Thu, 13 Jun 2013 11:10:18 +0000 (11:10 +0000)]
Removed the Material Boundary option from the edge detection options in
the Parameter Editor mode.  The Material Boundary toggle button takes
effect only in the Python Scripting mode.  Instead the Parameter Editor
mode automatically determines which edge types need to be computed on the
basis of user-specified line selection criteria in terms of edge types.

Problem report from Light BWK through personal communications, thanks!

6 years agoFix crash in movie clip node when ibuf fails to load.
Sergey Sharybin [Thu, 13 Jun 2013 10:25:41 +0000 (10:25 +0000)]
Fix crash in movie clip node when ibuf fails to load.

Was a stupid mistake in another fix here :(

6 years agoSafety check for NodeTree.links.new function: Added NEVER_NULL flags to from_socket...
Lukas Toenne [Thu, 13 Jun 2013 09:52:14 +0000 (09:52 +0000)]
Safety check for NodeTree.links.new function: Added NEVER_NULL flags to from_socket/to_socket arguments to make sure the function doesn't crash when passing None/NULL.

6 years agofix [#35346] Python: still UI issue with popup and dropdown list
Campbell Barton [Thu, 13 Jun 2013 09:12:53 +0000 (09:12 +0000)]
fix [#35346] Python: still UI issue with popup and dropdown list

6 years agofix [#35713] Set Origin not waiting for user input.
Campbell Barton [Thu, 13 Jun 2013 01:39:07 +0000 (01:39 +0000)]
fix [#35713] Set Origin not waiting for user input.

Only activate search-box items on mouse-release,
Otherwise this gives odd behavior when using the operator-search popup since some tools expect the mouse buttons not to be held when activating which includes operators that have their own popup menus.

6 years agointernal change to searchbox: store the active search index rather then index + 1...
Campbell Barton [Thu, 13 Jun 2013 01:13:26 +0000 (01:13 +0000)]
internal change to searchbox: store the active search index rather then index + 1, simplifies checks.

6 years agofix for problem with creating weight-paint preview.
Campbell Barton [Thu, 13 Jun 2013 00:33:48 +0000 (00:33 +0000)]
fix for problem with creating weight-paint preview.

In the case where the modifier stack didnt need deform-verts to calculate,
they would not be available for the preview either.

This fixes a bug caused by r57206 which set mirror to preview so the mirrored
weights would be displayed, but it only worked when there was an armature after it, see [#35545].

6 years agoFix #35723: cycles motion blur rendering issue after recent optimizations to skip
Brecht Van Lommel [Wed, 12 Jun 2013 20:47:48 +0000 (20:47 +0000)]
Fix #35723: cycles motion blur rendering issue after recent optimizations to skip
some unneeded object syncing.

6 years agoFix #35715: incorrect shortcut shown for some menus after recent code refactoring.
Brecht Van Lommel [Wed, 12 Jun 2013 20:47:46 +0000 (20:47 +0000)]
Fix #35715: incorrect shortcut shown for some menus after recent code refactoring.

6 years agoFix #35353: Freestyle + Compositor + Auto-render renders freestyle lines in the wrong...
Tamito Kajiyama [Wed, 12 Jun 2013 17:59:03 +0000 (17:59 +0000)]
Fix #35353: Freestyle + Compositor + Auto-render renders freestyle lines in the wrong place.

6 years agoTrack Position node now could output absolute position of track at a given frame
Sergey Sharybin [Wed, 12 Jun 2013 14:28:36 +0000 (14:28 +0000)]
Track Position node now could output absolute position of track at a given frame

6 years agoRemove magic constants from Track Position node RNA code.
Sergey Sharybin [Wed, 12 Jun 2013 12:55:44 +0000 (12:55 +0000)]
Remove magic constants from Track Position node RNA code.

6 years agoCleaned code a bit around 2D stabilization
Sergey Sharybin [Wed, 12 Jun 2013 12:34:10 +0000 (12:34 +0000)]
Cleaned code a bit around 2D stabilization

Hopefully it's more readable now. Took me a while to remmeber
all the stuff going on here while was looking into possibility
of implementing some feature here.

6 years agoBugfix [#35668] Tooltip for Euler Discontinuity Filter was misleading
Joshua Leung [Wed, 12 Jun 2013 12:32:07 +0000 (12:32 +0000)]
Bugfix [#35668] Tooltip for Euler Discontinuity Filter was misleading

The tooltip seemed to hint that this tool is able to resolve all manner of
gimble-lock situations by untangling the curves (i.e. performing some kind of
equivalent-angles resolution, keeping in mind the nearest situations nearby).
However, this tool currently only performs corrections for the most basic case
when large jump+flip discontinuity artifacts appear in euler rotation curves as
a result of rotation values getting clipped to +/- 180 degrees, which arises
when these rotation curves are the result of baking some physics sim or so.

(Also, fixed an unrelated "replace-all" typo in a comment)

6 years agoFix #35703, Viewer node doesn't updates image sometimes. The viewer node was not...
Lukas Toenne [Wed, 12 Jun 2013 11:26:44 +0000 (11:26 +0000)]
Fix #35703, Viewer node doesn't updates image sometimes. The viewer node was not getting correctly initialized node->id pointer to the Viewer image (thanks to Sergey for figuring that out). The original
proposal was to add another special init hack for the viewer node->id, but rather would do it right and so moved all the special init hacks for constant ID backpointers (Scene for RenderLayer, Composite,
Defocus, FileOutput and MovieClip for MovieClip, MovieDistortion and Stabilization nodes). These are now part of the local init callbacks functions of the appropriate nodes, using the new initfunc_api
callback which takes a Context pointer, so they have access to Scene.

6 years agoVertex weight panel now uses same sort order as Vertex Group list
Gaia Clary [Wed, 12 Jun 2013 10:39:27 +0000 (10:39 +0000)]
Vertex weight panel now uses same sort order as Vertex Group list

6 years agoifdef bugfix since its a little strange.
Campbell Barton [Wed, 12 Jun 2013 10:03:13 +0000 (10:03 +0000)]
ifdef bugfix since its a little strange.

6 years agoprepared local vgroup selection function for more general usage
Gaia Clary [Wed, 12 Jun 2013 09:52:37 +0000 (09:52 +0000)]
prepared local vgroup selection function for more general usage

6 years agosolidify: dont add poly-normal layer to the derived mesh, since this is no longer...
Campbell Barton [Wed, 12 Jun 2013 09:35:02 +0000 (09:35 +0000)]
solidify: dont add poly-normal layer to the derived mesh, since this is no longer a convention.

6 years agofix [#35710] Mesh explodes while using solidify modifier with tubular non-manifold...
Campbell Barton [Wed, 12 Jun 2013 08:24:31 +0000 (08:24 +0000)]
fix [#35710] Mesh explodes while using solidify modifier with tubular non-manifold base mesh.