10 years agospelling corrections from Philippe Casteleyn
Campbell Barton [Sat, 10 Sep 2011 14:28:13 +0000 (14:28 +0000)]
spelling corrections from Philippe Casteleyn

10 years agoAnother set of fixes for recats: osx uses different order of arguments for sort_r
Sergey Sharybin [Sat, 10 Sep 2011 14:12:15 +0000 (14:12 +0000)]
Another set of fixes for recats: osx uses different order of arguments for sort_r
and it's callback.

Also do not use char constants like 'NAVM' which is casting to int.
And added defautl section to switch in KX_NavMeshObject::DrawNavMesh.

10 years agouse vertex arrays for wireframe octahedral bone drawing.
Campbell Barton [Sat, 10 Sep 2011 12:07:16 +0000 (12:07 +0000)]
use vertex arrays for wireframe octahedral bone drawing.

10 years agofix for building with collada and some other warnings
Campbell Barton [Sat, 10 Sep 2011 09:38:38 +0000 (09:38 +0000)]
fix for building with collada and some other warnings

10 years agoNavigation Mesh Modifier:
Thomas Dinges [Sat, 10 Sep 2011 09:21:46 +0000 (09:21 +0000)]
Navigation Mesh Modifier:
* Fix scons define for operator append
* Don't use abbreviations in the UI.

10 years agoMSVC build fix by MiikaH for NAVMESH. Thanks! :)
Thomas Dinges [Sat, 10 Sep 2011 09:06:42 +0000 (09:06 +0000)]
MSVC build fix by MiikaH for NAVMESH. Thanks! :)

10 years agoRecast & Detour UI:
Thomas Dinges [Sat, 10 Sep 2011 08:43:11 +0000 (08:43 +0000)]
Recast & Detour UI:
* Panels showed up even if in non game engine mode, polls were missing!

10 years agoSmall comment change, when built without Fluids.
Thomas Dinges [Sat, 10 Sep 2011 08:29:50 +0000 (08:29 +0000)]
Small comment change, when built without Fluids.

10 years agoCompile fix for scons:
Thomas Dinges [Sat, 10 Sep 2011 08:25:03 +0000 (08:25 +0000)]
Compile fix for scons:
* Don't compile with navmesh_conversion.cpp if Game engine is disabled.

10 years agoFixing bugs after Recast & Detour branch merge
Bastien Montagne [Sat, 10 Sep 2011 07:58:42 +0000 (07:58 +0000)]
Fixing bugs after Recast & Detour branch merge
*The eModifierType_NavMesh enum define was added before WeightVG ones, in ModifierType, breaking file load for WeightVG modifier. New modifier should always be added at the end of that enum!

10 years agoNAVMESH Modifier was not alphabetical correct in the modifier list, as the others.
Thomas Dinges [Sat, 10 Sep 2011 07:14:35 +0000 (07:14 +0000)]
NAVMESH Modifier was not alphabetical correct in the modifier list, as the others.

10 years agodisable navmesh feature when building without the game engine.
Campbell Barton [Sat, 10 Sep 2011 04:21:58 +0000 (04:21 +0000)]
disable navmesh feature when building without the game engine.

10 years agofixed linking with CMake
Campbell Barton [Sat, 10 Sep 2011 03:42:45 +0000 (03:42 +0000)]
fixed linking with CMake

10 years agorecast and detour patch now builds again with GCC
Campbell Barton [Sat, 10 Sep 2011 03:07:26 +0000 (03:07 +0000)]
recast and detour patch now builds again with GCC
- rearrange structs to work for 64bit
- define all vars before goto's
- ifdefs for qsort_r/qsort_s
- dont cast pointers to int only for NULL checks
- dont printf STR_String directly, get the char pointer from it

also minor change to gpu py module, no need to pass empty tuple to PyObject_CallObject, can just be NULL

10 years agofix own mistake in recent commit, was using glIndexPointer incorrectly.
Campbell Barton [Sat, 10 Sep 2011 01:39:21 +0000 (01:39 +0000)]
fix own mistake in recent commit, was using glIndexPointer incorrectly.

10 years agoFixing bugs after Recast & Detour branch merge!!
Thomas Dinges [Fri, 9 Sep 2011 22:47:26 +0000 (22:47 +0000)]
Fixing bugs after Recast & Detour branch merge!!
* The new NAVMESH Modifier did not show any buttons, console printed errors instead!
* Poll of "PHYSICS_PT_game_obstacles" panel caused errors as well, self instead of cls was used as argument.
* Check to show/hide buttons in "WORLD_PT_game_physics_obstacles" panel did not worked due to wrong ENUM identifier ('None' instead if 'NONE')
* Moved "SCENE_PT_navmesh" panel out of into the where it belongs and renamed it. Also, don't use abreviations in Panel Headers (Navmesh > Navigaion Mesh)
* Code cleanup, removed unnescecary code.
* bpy.types.Panel > Panel

10 years agoSVN maintenance.
Guillermo S. Romero [Fri, 9 Sep 2011 22:02:12 +0000 (22:02 +0000)]
SVN maintenance.

10 years agoBGE: merge Recast & Detour branch (sock-2010-nicks).
Benoit Bolsee [Fri, 9 Sep 2011 21:28:56 +0000 (21:28 +0000)]
BGE: merge Recast & Detour branch (sock-2010-nicks).

Add navigation mesh capability to the BGE, both by logic bricks and python.
Add tools to creation navigation mesh in the creator:
- manualy
- automatically from existing mesh with "object.create_navmesh" operator
- automatically from existing mesh with "Navigation mesh" modifier
Editing navigation mesh is possible via special modifier edit mode.
Creation and modification of Navigation mesh is also possible at runtime in the BGE.

Documentation at

Warning: No upgrade is provided for blend files created under the branch.
         If you load a blend with navigation data created with a branch
         build, it will likely crash blender or behave incorrectly.

10 years agosvn merge -r 40061:40078 soc-2010-nicks
Benoit Bolsee [Fri, 9 Sep 2011 19:30:33 +0000 (19:30 +0000)]
svn merge -r 40061:40078

10 years agouse opengl vertex arrays for the base widgets, their rounded corners, arrows and...
Campbell Barton [Fri, 9 Sep 2011 14:44:36 +0000 (14:44 +0000)]
use opengl vertex arrays for the base widgets, their rounded corners, arrows and emboss. (note, this is from OpenGL 1.1 from 1992, nothing fancy), gives moderate speedup on my system when showing many buttons (10% - 15%).

10 years ago[#28595] Select similar edges by face angles ignores z component of normal angles
Sergey Sharybin [Fri, 9 Sep 2011 14:04:33 +0000 (14:04 +0000)]
[#28595] Select similar edges by face angles ignores z component of normal angles

Patch provided by Andrew Wiggin (ender79). Thanks!

10 years agowarning fixes
Campbell Barton [Fri, 9 Sep 2011 13:46:47 +0000 (13:46 +0000)]
warning fixes

10 years agoFix #28590: Sculpt Overlay Texture in Viewport Glitched and Wrong icon for Overlay...
Sergey Sharybin [Fri, 9 Sep 2011 13:42:22 +0000 (13:42 +0000)]
Fix #28590: Sculpt Overlay Texture in Viewport Glitched and Wrong icon for Overlay Option?

Use clamp to border for fixed textures.

10 years agoerror (case insensitive search replace)
Campbell Barton [Fri, 9 Sep 2011 13:37:17 +0000 (13:37 +0000)]
error (case insensitive search replace)

10 years agoreplace magic numbers with defines to make the interface source more readable.
Campbell Barton [Fri, 9 Sep 2011 13:10:18 +0000 (13:10 +0000)]
replace magic numbers with defines to make the interface source more readable.
only functional change is the uiWidgetBase struct stored up to 64 verts, changed this to 36 since thats the most that is used atm, added assert if this ever changes.

10 years agoHotkey tweaks: Start/End frame jumping back to Shift-Left/Right
Joshua Leung [Fri, 9 Sep 2011 13:02:15 +0000 (13:02 +0000)]
Hotkey tweaks: Start/End frame jumping back to Shift-Left/Right

I'd moved them to Ctrl-Shift-Left/Right having thought that they were
for some reason now conflicting with some other hotkeys. Apparently

10 years agoPatch [#23443] Change outliner filter into search
Joshua Leung [Fri, 9 Sep 2011 12:46:07 +0000 (12:46 +0000)]
Patch [#23443] Change outliner filter into search
Shane Ambler (sambler) for this 12-month vintage!

From description:
One thing with the outliner filter box is it only filters items that
are currently visible. To find what you want you need to manually
expand a few levels so that what you want to find is visible.

This small patch expands items when filtering is done - effectively
turning it into a search.

Currently this does not alter the datablocks view as expanding all
entries takes waaaay tooooo long.
I prevent the expansion of RNA entries for userprefs which prevents
infinite recursion but the datablocks list is just too big for this
approach. I think it would need a custom outliner_build_tree for a
full search.

10 years agoforgot to resolve one conflict in previous merge
Benoit Bolsee [Fri, 9 Sep 2011 12:37:56 +0000 (12:37 +0000)]
forgot to resolve one conflict in previous merge

10 years agoApply small patch by Shane Ambler:
Nathan Letwory [Fri, 9 Sep 2011 12:23:45 +0000 (12:23 +0000)]
Apply small patch by Shane Ambler:

* inline of math funcs for Apple PPC
* eltopo big/little endian ifdef

10 years agosvn merge -r 39975:40061
Benoit Bolsee [Fri, 9 Sep 2011 12:21:41 +0000 (12:21 +0000)]
svn merge -r 39975:40061

10 years agoGPU: add gpu python module with export_shader() function to export GLSL shader.
Benoit Bolsee [Fri, 9 Sep 2011 11:55:38 +0000 (11:55 +0000)]
GPU: add gpu python module with export_shader() function to export GLSL shader.

shader = gpu.export_shader(scene,material)

Returns the GLSL shader that blender generates to produce the visual effect
of material in scene for the purpose of reusing the shader in an external engine.
This function is meant to be used in a material exporter so that the GLSL
shader can be exported entirely. The return value is a dictionary containing the
shader source code and all associated data.

The full documentation is under sphinx.

Warning: there has been an API between the patch and this commit:
uniform['lamp'] and uniform['image'] now return python reference to
ID block instead of ID name as before. The X3D exporter that uses this
function must be adapted.

10 years agoworkaround for msvc not supporting variable length args in macros.
Campbell Barton [Fri, 9 Sep 2011 11:54:13 +0000 (11:54 +0000)]
workaround for msvc not supporting variable length args in macros.

10 years agoFix #28392: some selection operators were working in linked scenes, others not.
Brecht Van Lommel [Fri, 9 Sep 2011 10:15:14 +0000 (10:15 +0000)]
Fix #28392: some selection operators were working in linked scenes, others not.
This allows all object selection operators now, useful for inspecting the scene.

10 years ago- turn RNA_warning into a macro which includes the function name (was being written...
Campbell Barton [Fri, 9 Sep 2011 01:29:53 +0000 (01:29 +0000)]
- turn RNA_warning into a macro which includes the function name (was being written in manually but had incorrect func names in places).
- add __func__ define to BLI_utildefines.h for MSVC.

10 years agoSVN maintenance.
Guillermo S. Romero [Fri, 9 Sep 2011 00:46:00 +0000 (00:46 +0000)]
SVN maintenance.

10 years agobpy api - add new page for best-practice (so Thomas has something to point to when...
Campbell Barton [Thu, 8 Sep 2011 23:59:47 +0000 (23:59 +0000)]
bpy api - add new page for best-practice (so Thomas has something to point to when kicking devs for writing shoddy UI layouts)

10 years agoForgot to add FFmpeg DLLs list to linuxcross config.
Sergey Sharybin [Thu, 8 Sep 2011 19:05:52 +0000 (19:05 +0000)]
Forgot to add FFmpeg DLLs list to linuxcross config.

10 years agoFix #28310: import of key configuration with modal keymap not working.
Brecht Van Lommel [Thu, 8 Sep 2011 13:22:26 +0000 (13:22 +0000)]
Fix #28310: import of key configuration with modal keymap not working.

10 years agoModifiers: put uv project and vertex weight modifiers in separate category,
Brecht Van Lommel [Thu, 8 Sep 2011 12:53:01 +0000 (12:53 +0000)]
Modifiers: put uv project and vertex weight modifiers in separate category,
couldn't really think of a good name for it, suggestions welcome.

10 years agoModifier UV Project UI:
Thomas Dinges [Thu, 8 Sep 2011 11:12:25 +0000 (11:12 +0000)]
Modifier UV Project UI:
* Code cleanup.

10 years agoVertex Weight UI:
Thomas Dinges [Thu, 8 Sep 2011 11:08:22 +0000 (11:08 +0000)]
Vertex Weight UI:
* Remove check for ob.type mesh, this is done on RNA Level and not needed here
* Removed unnecessary row declaration

10 years agocorrection to docs.
Campbell Barton [Thu, 8 Sep 2011 10:15:27 +0000 (10:15 +0000)]
correction to docs.

10 years agocorrect fix for #28558
Campbell Barton [Thu, 8 Sep 2011 09:48:41 +0000 (09:48 +0000)]
correct fix for #28558

10 years agoFix #28545: User Preferences - System Tab - Reset All To Default Values on OpenGL...
Sergey Sharybin [Thu, 8 Sep 2011 09:46:31 +0000 (09:46 +0000)]
Fix #28545: User Preferences - System Tab - Reset All To Default Values on OpenGL Lights

Added default direction to light.

10 years agoVertex Weight Proximity: minor updates and fixes.
Bastien Montagne [Thu, 8 Sep 2011 07:36:59 +0000 (07:36 +0000)]
Vertex Weight Proximity: minor updates and fixes.
*Updated UI code (replaced “row columns” by splits ;) ).
*Clamped global influence to [0.0, 1.0] range!
*Added/edited some tooltips for Proximity.
*Proximity distance mapping can now be reversed by entering Lowest Dist > Highest Dist.
*Moved mapping before masking in Proximity, much more sensible this way!

10 years agoFixed potential issue in mirrored loop node sockets. These are currently not used...
Lukas Toenne [Thu, 8 Sep 2011 07:05:27 +0000 (07:05 +0000)]
Fixed potential issue in mirrored loop node sockets. These are currently not used, but clang pointed this out.

10 years agoMinor fixes for some unfounded clang warnings.
Lukas Toenne [Thu, 8 Sep 2011 07:01:29 +0000 (07:01 +0000)]
Minor fixes for some unfounded clang warnings.

10 years agoShader node tree exec data cannot use the exec->nodetree before it is initialized.
Lukas Toenne [Thu, 8 Sep 2011 06:14:03 +0000 (06:14 +0000)]
Shader node tree exec data cannot use the exec->nodetree before it is initialized.

10 years agofix for misc py errors + some pep8 edits.
Campbell Barton [Thu, 8 Sep 2011 05:42:44 +0000 (05:42 +0000)]
fix for misc py errors + some pep8 edits.

10 years agopatch from Uncle_Entity on IRC for fedora/collada
Campbell Barton [Thu, 8 Sep 2011 03:57:11 +0000 (03:57 +0000)]
patch from Uncle_Entity on IRC for fedora/collada

10 years agoattempt to have a threadsafe version of PyC_ExceptionBuffer didnt work with UI script...
Campbell Barton [Thu, 8 Sep 2011 02:14:24 +0000 (02:14 +0000)]
attempt to have a threadsafe version of PyC_ExceptionBuffer didnt work with UI script errors, reverting r39886.

10 years agofinished tips and tricks section of blender/python api docs, now included in generate...
Campbell Barton [Thu, 8 Sep 2011 01:26:23 +0000 (01:26 +0000)]
finished tips and tricks section of blender/python api docs, now included in generated docs.

10 years agofix [#28558] more edge_keys than edges
Campbell Barton [Wed, 7 Sep 2011 23:36:32 +0000 (23:36 +0000)]
fix [#28558] more edge_keys than edges

10 years agoVertex Weight Proximity: fixing bug #28560 (memory leak).
Bastien Montagne [Wed, 7 Sep 2011 20:06:04 +0000 (20:06 +0000)]
Vertex Weight Proximity: fixing bug #28560 (memory leak).

10 years agoIntroduce struct for export settings in COLLADA export code. This will make it easier to
Nathan Letwory [Wed, 7 Sep 2011 18:23:30 +0000 (18:23 +0000)]
Introduce struct for export settings in COLLADA export code. This will make it easier to
add new options without having to change function signatures all over the place.

10 years agosvn merge -r 37306:39975
Benoit Bolsee [Wed, 7 Sep 2011 15:34:04 +0000 (15:34 +0000)]
svn merge -r 37306:39975

10 years agoCommiting patch #28552 which was posted by Andrew Wiggin as fix for #28551
Sergey Sharybin [Wed, 7 Sep 2011 15:16:30 +0000 (15:16 +0000)]
Commiting patch #28552 which was posted by Andrew Wiggin as fix for #28551

Didn't notice this patch when was fixing bug myself, but it fixes some
more suspecious usages of angle_v2v2 instead of angle_v3v3.

10 years agoNode comparison function for sort order did not take parent selection into account.
Lukas Toenne [Wed, 7 Sep 2011 15:11:36 +0000 (15:11 +0000)]
Node comparison function for sort order did not take parent selection into account.

10 years agoFix #28551: Select similar by normals ignores z component of normal angles
Sergey Sharybin [Wed, 7 Sep 2011 15:09:03 +0000 (15:09 +0000)]
Fix #28551: Select similar by normals ignores z component of normal angles

Select grouped used angle_v2v2 instead of angle_v3v3.

10 years agoOSX: revert default compile to i386, for it breakes QTKit-condition for some unknown...
Jens Verwiebe [Wed, 7 Sep 2011 14:44:52 +0000 (14:44 +0000)]
OSX: revert default compile to i386, for it breakes QTKit-condition for some unknown reason

10 years agoUpdating render layer and image output sockets was not working due to changes in...
Lukas Toenne [Wed, 7 Sep 2011 13:30:16 +0000 (13:30 +0000)]
Updating render layer and image output sockets was not working due to changes in snode_set_context. Before the r39941 this used a hack to 'test for first drawing', but since the snode->nodetree was set to NULL each time at the start of that function the condition would always evaluate true anyway. Simply removed that check to restore previous behavior.

10 years agoFix for crash when duplicating image or render layer nodes.
Lukas Toenne [Wed, 7 Sep 2011 12:46:30 +0000 (12:46 +0000)]
Fix for crash when duplicating image or render layer nodes.

These nodes use cached buffers (in sock->cache), which need to be cleared when duplicating the node, otherwise the buffer will be freed twice.

10 years agoFix #28541: crash with operator reports in some cases, caused by my recent fix
Brecht Van Lommel [Wed, 7 Sep 2011 11:53:16 +0000 (11:53 +0000)]
Fix #28541: crash with operator reports in some cases, caused by my recent fix
for missing reports, thanks to Sergey for tracking this down.

10 years agoFixed offset for socket remove buttons ('x') in node groups.
Lukas Toenne [Wed, 7 Sep 2011 10:48:33 +0000 (10:48 +0000)]
Fixed offset for socket remove buttons ('x') in node groups.

10 years agoApply patch [#28415] 3d mouse orbit mode individual axes enhancement
Nathan Letwory [Wed, 7 Sep 2011 10:33:46 +0000 (10:33 +0000)]
Apply patch [#28415] 3d mouse orbit mode individual axes enhancement
Submitted by Rainer Wahler

This patch enables individual axis inversion in trackball mode.

10 years agoCode for setting/getting/freeing executable nodes in compositor was still using the...
Lukas Toenne [Wed, 7 Sep 2011 10:26:22 +0000 (10:26 +0000)]
Code for setting/getting/freeing executable nodes in compositor was still using the plain nodetree->nodes list, which is not dependency sorted any more. This caused missing updates for viewers and other nodes. Instead this code now uses the execution data generated before, which has a correctly sorted list of bNodeExecData.

10 years agoInitialize the exec data in for composite with the node tree pointer. Doesn't matter...
Lukas Toenne [Wed, 7 Sep 2011 10:09:24 +0000 (10:09 +0000)]
Initialize the exec data in for composite with the node tree pointer. Doesn't matter now since composites are not executed in parallel, but just to be safe.

10 years agointerface + naming improvements to vertex wright modifier
Campbell Barton [Wed, 7 Sep 2011 07:46:26 +0000 (07:46 +0000)]
interface + naming improvements to vertex wright modifier
- WeightVG -> Vertex Weight
- mapping_mode -> falloff_type
- nicer layout for VertexWeightModifiers add/remove options

10 years agoAnother fix for value nodes, those need full template definitions for their output...
Lukas Toenne [Wed, 7 Sep 2011 07:29:29 +0000 (07:29 +0000)]
Another fix for value nodes, those need full template definitions for their output sockets, since they use their range limits for buttons.

10 years agoSVN maintenance.
Guillermo S. Romero [Wed, 7 Sep 2011 07:06:43 +0000 (07:06 +0000)]
SVN maintenance.

10 years agoAttempt to fix compile error on OSX
Nathan Letwory [Wed, 7 Sep 2011 07:02:56 +0000 (07:02 +0000)]
Attempt to fix compile error on OSX

10 years agoMerging r39693 through r39989 from vgroup_modifiers branch into trunk.
Bastien Montagne [Wed, 7 Sep 2011 06:33:29 +0000 (06:33 +0000)]
Merging r39693 through r39989 from vgroup_modifiers branch into trunk.

10 years agoFix for value node limits.
Lukas Toenne [Wed, 7 Sep 2011 06:17:28 +0000 (06:17 +0000)]
Fix for value node limits.

The value input nodes (like rgb input nodes) use the output value out their first socket for the button value. This needs explicitly set range limits to allow meaningful user input.

10 years agoMerging r39948 through r39988 from trunk into vgroup_modifiers. vgroup_modifiers
Bastien Montagne [Wed, 7 Sep 2011 05:40:12 +0000 (05:40 +0000)]
Merging r39948 through r39988 from trunk into vgroup_modifiers.

10 years agouse Py_ssize_t rather than int when dealing with list sizes (original patch from...
Campbell Barton [Tue, 6 Sep 2011 23:46:20 +0000 (23:46 +0000)]
use Py_ssize_t rather than int when dealing with list sizes (original patch from Fedora but applied changes elsewhere too), also replace PyList_Size with PyList_GET_SIZE where typechecking is already done.

10 years agoSplit off scene export code.
Nathan Letwory [Tue, 6 Sep 2011 22:18:12 +0000 (22:18 +0000)]
Split off scene export code.

10 years agoBGE fix: ignore sounds that cannot be opened instead of crashing. ;-)
Joerg Mueller [Tue, 6 Sep 2011 21:02:26 +0000 (21:02 +0000)]
BGE fix: ignore sounds that cannot be opened instead of crashing. ;-)

10 years agoFixed potential crash in NodeTagIDChanged. Discovered after merge trunk
Sergey Sharybin [Tue, 6 Sep 2011 18:15:34 +0000 (18:15 +0000)]
Fixed potential crash in NodeTagIDChanged. Discovered after merge trunk
into tomato where there were no check for tree before calling this function.
Old design worked fine with this.

Mark some arguments as UNUSED.

10 years agoNode merge: fix crash loading files with unknown nodes (e.g. cycles files).
Brecht Van Lommel [Tue, 6 Sep 2011 17:34:56 +0000 (17:34 +0000)]
Node merge: fix crash loading files with unknown nodes (e.g. cycles files).

10 years agoEnabled the 'Layout' node category, currently only containing the 'Frame' node. Both...
Lukas Toenne [Tue, 6 Sep 2011 17:28:26 +0000 (17:28 +0000)]
Enabled the 'Layout' node category, currently only containing the 'Frame' node. Both the category and the node could be renamed as needed. The frame node is largely experimental and not totally useful yet, but much asked for, so can't hurt to let people try it out.

10 years agoFix missing warning message when reading files that are not forward compatible,
Brecht Van Lommel [Tue, 6 Sep 2011 17:27:18 +0000 (17:27 +0000)]
Fix missing warning message when reading files that are not forward compatible,
it seems this never worked in 2.5.

10 years agoFix screen/scene browsing in info header not working right, mistake in code cleanup.
Brecht Van Lommel [Tue, 6 Sep 2011 17:18:50 +0000 (17:18 +0000)]
Fix screen/scene browsing in info header not working right, mistake in code cleanup.

10 years agoNode merge: some forward compatibility code to avoid crash loading files with
Brecht Van Lommel [Tue, 6 Sep 2011 16:51:10 +0000 (16:51 +0000)]
Node merge: some forward compatibility code to avoid crash loading files with
node groups in older version, and to keep unconnected/default socket values.

10 years agoFix for node group add menu, groups from old files wouldn't show up there.
Lukas Toenne [Tue, 6 Sep 2011 16:48:28 +0000 (16:48 +0000)]
Fix for node group add menu, groups from old files wouldn't show up there.

Reason was that node trees are now associated to specific node types (NODE_GROUP in particular) by the ntree->nodetype id.

10 years agoFix for multiple parallel group node executions.
Lukas Toenne [Tue, 6 Sep 2011 16:32:51 +0000 (16:32 +0000)]
Fix for multiple parallel group node executions.

This would previously break because begin/end functions for each tree type still have some checks of the ntree->execdata pointer in them, despite the intended use of execdata instances instead of trees themselves for execution data storage. This is an artifact of the old execution system that required these checks to be made in the functions to avoid multiple execution of top-level trees. Now these functions take an additional argument, so group nodes can prevent them from setting and checking the nodetree->execdata pointers.

10 years agoAmbient Occlusion:
Thomas Dinges [Tue, 6 Sep 2011 15:44:44 +0000 (15:44 +0000)]
Ambient Occlusion:
* Increase max. samples from 32 to 128.

10 years agoFix #28524: Push/Pull Assert when using Operator Panel to Alter Distance value
Sergey Sharybin [Tue, 6 Sep 2011 14:59:55 +0000 (14:59 +0000)]
Fix #28524: Push/Pull Assert when using Operator Panel to Alter Distance value

Some transform operators (like push/pull, shrink/fatten, to sphere and so)
were creating "value" as single scalar value. This used to confuse
RNA_float_get_array used in initTransform.

Use RNA_float_get_array for array values and RNA_float_get for scalar value
in transform initi function.

10 years agoFix for poly line grease pencil and surface drawing.
Sergey Sharybin [Tue, 6 Sep 2011 14:02:28 +0000 (14:02 +0000)]
Fix for poly line grease pencil and surface drawing.

10 years agoremove -Wundef for code we don't maintain & generated code.
Campbell Barton [Tue, 6 Sep 2011 13:00:46 +0000 (13:00 +0000)]
remove -Wundef for code we don't maintain & generated code.

10 years agoFix for wrong offset of the input socket column in group node tree display.
Lukas Toenne [Tue, 6 Sep 2011 11:42:20 +0000 (11:42 +0000)]
Fix for wrong offset of the input socket column in group node tree display.

10 years agoBackward compatibility fix for SOCK_DYNAMICS flag on group sockets.
Lukas Toenne [Tue, 6 Sep 2011 11:38:44 +0000 (11:38 +0000)]
Backward compatibility fix for SOCK_DYNAMICS flag on group sockets.

This is currently only needed for displaying the up/down buttons of group sockets. All regular group sockets should have this flag to indicate they are added by the user. More complex "group-type" trees may use non-dynamic sockets in the future for sockets that are not supposed to be manipulated.

10 years agofix link issues with MinGW - a substitute declaration(correctByteOrder) for itoln...
Antony Riakiotakis [Tue, 6 Sep 2011 11:17:29 +0000 (11:17 +0000)]
fix link issues with MinGW - a substitute declaration(correctByteOrder) for itoln that was not present in MinGW was being used. Duplicated the declaration from <winsock2.h>(tried including but gave some errors) and added the appropriate link library, wsock32, according to MinGW documentation.

10 years agotexture evaluation function (like we had in 2.4x api), requested by Lee.
Campbell Barton [Tue, 6 Sep 2011 10:49:55 +0000 (10:49 +0000)]
texture evaluation function (like we had in 2.4x api), requested by Lee.

 red, green, blue, intensity = texture.evaluate(vec)

10 years agoNew grease pencil mode: poly line drawing
Sergey Sharybin [Tue, 6 Sep 2011 08:30:17 +0000 (08:30 +0000)]
New grease pencil mode: poly line drawing

- It's like sketch mode for lines, but you're specifying line knots
  by clicking on position you want to add next knot.
- View can be navigated between knots creation.
- Holding LMB down and sliding mouse will lead to new segment preview
  so it can be created more accurate.

Additional change: fixed GP->Bezier conversion. Last point used to
                   be ignored in this operator.

10 years agoFix for #28517, group nodes losing all links from older files.
Lukas Toenne [Tue, 6 Sep 2011 08:28:06 +0000 (08:28 +0000)]
Fix for #28517, group nodes losing all links from older files.

The reason was that group nodes tried to reconstruct sockets from the template lists, which are empty. Now the verification function checks if there are any sockets in the template lists, which are always empty for group nodes.

10 years agoGrease pencil: non-blocking sketch sessions
Sergey Sharybin [Tue, 6 Sep 2011 07:59:18 +0000 (07:59 +0000)]
Grease pencil: non-blocking sketch sessions

- Implement own undo stack for grease pencil, so now there'll be no keymaps conflicts.
- Supported redo's during sketch session.
- Get rid of flag stored in Globals -- use undo stack to check if grease pencil session is active.

10 years agofix for error in strinc.c's BLI_strescape
Campbell Barton [Tue, 6 Sep 2011 07:08:20 +0000 (07:08 +0000)]
fix for error in strinc.c's BLI_strescape

10 years agomore minor doc fixes
Campbell Barton [Tue, 6 Sep 2011 00:41:28 +0000 (00:41 +0000)]
more minor doc fixes

10 years agosvn merge -r39930:39947
Campbell Barton [Tue, 6 Sep 2011 00:31:00 +0000 (00:31 +0000)]
svn merge -r39930:39947

10 years agofix for doc building after pepper merge, also WIP tips/tricks.
Campbell Barton [Tue, 6 Sep 2011 00:12:34 +0000 (00:12 +0000)]
fix for doc building after pepper merge, also WIP tips/tricks.