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)
Sergey Sharybin [Thu, 8 Sep 2011 19:05:52 +0000 (19:05 +0000)]
Forgot to add FFmpeg DLLs list to linuxcross config.
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.
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.
Thomas Dinges [Thu, 8 Sep 2011 11:12:25 +0000 (11:12 +0000)]
Modifier UV Project UI:
* Code cleanup.
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
Campbell Barton [Thu, 8 Sep 2011 10:15:27 +0000 (10:15 +0000)]
correction to docs.
Campbell Barton [Thu, 8 Sep 2011 09:48:41 +0000 (09:48 +0000)]
correct fix for #28558
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.
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!
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.
Lukas Toenne [Thu, 8 Sep 2011 07:01:29 +0000 (07:01 +0000)]
Minor fixes for some unfounded clang warnings.
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.
Campbell Barton [Thu, 8 Sep 2011 05:42:44 +0000 (05:42 +0000)]
fix for misc py errors + some pep8 edits.
Campbell Barton [Thu, 8 Sep 2011 03:57:11 +0000 (03:57 +0000)]
patch from Uncle_Entity on IRC for fedora/collada
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.
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.
Campbell Barton [Wed, 7 Sep 2011 23:36:32 +0000 (23:36 +0000)]
fix [#28558] more edge_keys than edges
Bastien Montagne [Wed, 7 Sep 2011 20:06:04 +0000 (20:06 +0000)]
Vertex Weight Proximity: fixing bug #28560 (memory leak).
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.
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.
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.
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.
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
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.
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.
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.
Lukas Toenne [Wed, 7 Sep 2011 10:48:33 +0000 (10:48 +0000)]
Fixed offset for socket remove buttons ('x') in node groups.
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.
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.
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.
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
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.
Guillermo S. Romero [Wed, 7 Sep 2011 07:06:43 +0000 (07:06 +0000)]
SVN maintenance.
Nathan Letwory [Wed, 7 Sep 2011 07:02:56 +0000 (07:02 +0000)]
Attempt to fix compile error on OSX
Bastien Montagne [Wed, 7 Sep 2011 06:33:29 +0000 (06:33 +0000)]
Merging r39693 through r39989 from vgroup_modifiers branch into trunk.
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.
Bastien Montagne [Wed, 7 Sep 2011 05:40:12 +0000 (05:40 +0000)]
Merging r39948 through r39988 from trunk into vgroup_modifiers.
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.
Nathan Letwory [Tue, 6 Sep 2011 22:18:12 +0000 (22:18 +0000)]
Split off scene export code.
Joerg Mueller [Tue, 6 Sep 2011 21:02:26 +0000 (21:02 +0000)]
BGE fix: ignore sounds that cannot be opened instead of crashing. ;-)
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.
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).
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.
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.
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.
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.
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.
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.
Thomas Dinges [Tue, 6 Sep 2011 15:44:44 +0000 (15:44 +0000)]
Ambient Occlusion:
* Increase max. samples from 32 to 128.
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.
Sergey Sharybin [Tue, 6 Sep 2011 14:02:28 +0000 (14:02 +0000)]
Fix for poly line grease pencil and surface drawing.
Campbell Barton [Tue, 6 Sep 2011 13:00:46 +0000 (13:00 +0000)]
remove -Wundef for code we don't maintain & generated code.
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.
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.
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.
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.
eg:
red, green, blue, intensity = texture.evaluate(vec)
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.
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.
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.
Campbell Barton [Tue, 6 Sep 2011 07:08:20 +0000 (07:08 +0000)]
fix for error in strinc.c's BLI_strescape
Campbell Barton [Tue, 6 Sep 2011 00:41:28 +0000 (00:41 +0000)]
more minor doc fixes
Campbell Barton [Tue, 6 Sep 2011 00:31:00 +0000 (00:31 +0000)]
svn merge -r39930:39947 https://svn.blender.org/svnroot/bf-blender/trunk/blender
Campbell Barton [Tue, 6 Sep 2011 00:12:34 +0000 (00:12 +0000)]
fix for doc building after pepper merge, also WIP tips/tricks.
Campbell Barton [Mon, 5 Sep 2011 23:46:08 +0000 (23:46 +0000)]
replace define '#if FFTW3==1' --> '#ifdef WITH_FFTW3'
Campbell Barton [Mon, 5 Sep 2011 23:40:52 +0000 (23:40 +0000)]
fix some complier warnings and add -Wundef to CMake's default GCC warnings.
Nathan Letwory [Mon, 5 Sep 2011 22:15:07 +0000 (22:15 +0000)]
Typofix
Guillermo S. Romero [Mon, 5 Sep 2011 22:04:30 +0000 (22:04 +0000)]
SVN maintenance.
Lukas Toenne [Mon, 5 Sep 2011 22:04:23 +0000 (22:04 +0000)]
Fix for blender player linker bug, missing a stub function used in RNA.
Nathan Letwory [Mon, 5 Sep 2011 21:52:06 +0000 (21:52 +0000)]
Put dead zone printout behind debug.
Lukas Toenne [Mon, 5 Sep 2011 21:01:50 +0000 (21:01 +0000)]
Merged the particles-2010 branch with node improvements into trunk.
This branch adds mostly organizational improvements to the node system by renaming the node folders and files. A couple of internal features have been added too.
Detailed information can be found on the wiki page:
http://wiki.blender.org/index.php/User:Phonybone/Particles2010
Nathan Letwory [Mon, 5 Sep 2011 20:41:58 +0000 (20:41 +0000)]
Add parser error handler.
OpenCOLLADA is a validating parser, so is pretty strict about document form. The added error handler will print out any errors the parser finds. A pop-up will be shown too, advising the user to check the console for the error log.
Brecht Van Lommel [Mon, 5 Sep 2011 19:34:27 +0000 (19:34 +0000)]
Code cleanup: remove context from RNA update functions, only one left.
Brecht Van Lommel [Mon, 5 Sep 2011 19:27:21 +0000 (19:27 +0000)]
Code cleanup: warning fixes.
Brecht Van Lommel [Mon, 5 Sep 2011 17:57:04 +0000 (17:57 +0000)]
Fix #28404: certain keyboard shortcuts not shown in menus, e.g. move operators
in graph editor > channel menu. Problem was these did not inherit operator
execution context correctly.
Fix found by Sergey, also needed to fix logic operators which were not working
when invoked instead of executed.
Bastien Montagne [Mon, 5 Sep 2011 16:27:25 +0000 (16:27 +0000)]
Merging r39847 through r39930 from trunk into vgroup_modifiers.
Brecht Van Lommel [Mon, 5 Sep 2011 16:25:42 +0000 (16:25 +0000)]
Fix #28394: clouds texture error with high noise depth and blender original
noise, patch from Campbell,
Bastien Montagne [Mon, 5 Sep 2011 16:16:00 +0000 (16:16 +0000)]
VGroup Modifiers: added mapping options to proximity and edit.
*Added Smooth/Sharp/Root/etc. mappings to WeightVGEdit modifier, in addition to custom curve one.
*Added Smooth/Sharp/Root/etc. mappings to WeightVGProximity modifier, without the custom curve one!
*Factorized the common mapping code into MOD_weightvg_util.
Brecht Van Lommel [Mon, 5 Sep 2011 15:55:53 +0000 (15:55 +0000)]
Fix #28389: UILayout.menu function didn't emboss menu button correct in the
3d view tools region.
Nathan Letwory [Mon, 5 Sep 2011 15:03:31 +0000 (15:03 +0000)]
Left debug print accidently enabled.
Brecht Van Lommel [Mon, 5 Sep 2011 13:19:19 +0000 (13:19 +0000)]
Fix #28504: lib linking errors were not shown when opening a file from
the splash screen.
Sergey Sharybin [Mon, 5 Sep 2011 08:20:11 +0000 (08:20 +0000)]
Partial revert commit 39878 "Fix #28280: Insert Hook wrong index"
Such load/make edit structures introduced regression into iterators
via object's geometry (vertices, edges, control points and so) when
adding hooks in the body of this iterator.
Fix for wrong index should be non-destructable for geometry.
This will fix #28506: Unusual behavior in curves.
Campbell Barton [Mon, 5 Sep 2011 05:43:01 +0000 (05:43 +0000)]
correct float -> double promotion warnings
Daniel Salazar [Mon, 5 Sep 2011 05:42:49 +0000 (05:42 +0000)]
Adding noise module by default in driver_namespace
http://www.pasteall.org/blend/8677
Campbell Barton [Mon, 5 Sep 2011 05:28:32 +0000 (05:28 +0000)]
- vertex group modifiers isDisabled functions were incorrect, need to check if the string is set: == NULL will never be true.
- was doing NULL checks on freeing memory in cases where the values were already accessed (blender would have crashed anyway), so remove the NULL checks.
- use deform.c api weight functions to replace inline weight lookups in some cases.
- change if checks in weightvg_do_mask() so its more obvious whats going on.
Campbell Barton [Mon, 5 Sep 2011 04:53:23 +0000 (04:53 +0000)]
rename vertex group mix "vgroup, vgroup2" to "vgroup_a, vgroup_b"
also clamp more values between 0.0 and 1.0
Campbell Barton [Mon, 5 Sep 2011 04:00:08 +0000 (04:00 +0000)]
simplify get_vert2ob_distance, mat4_to_loc_rot_size isnt needed.
Campbell Barton [Mon, 5 Sep 2011 03:53:26 +0000 (03:53 +0000)]
change proximity method since minimum distance of 0.0 wasnt working at all.
Campbell Barton [Mon, 5 Sep 2011 03:26:49 +0000 (03:26 +0000)]
- mask_tex_map_obj --> mask_tex_map_object
- dont allow negative min distances
Campbell Barton [Mon, 5 Sep 2011 03:09:49 +0000 (03:09 +0000)]
minor edits.
- init proximity to 1.0f
- min/max proximity dist were not being copied.
- minor edits to comments - use ascii chars in a few places.
Nathan Letwory [Sun, 4 Sep 2011 22:14:28 +0000 (22:14 +0000)]
Remove NULL-checks, as they might cause infinite loops while reading a DAE containing unsupported data, i.e. <lines> geometry.
Sergey Sharybin [Sun, 4 Sep 2011 15:53:12 +0000 (15:53 +0000)]
Fix #28503: Selecting a Grease Pencil from the Properties panel does not update 3D View
Added missing notifiers.
Nathan Letwory [Sun, 4 Sep 2011 14:31:23 +0000 (14:31 +0000)]
[#27884] Collada import: materials mismatch when 2 instance_geometry reference the same material
Reported by David Roy
Multi-materials used on different meshes would get ignored (resulting in white faces in textured view).
Sergey Sharybin [Sun, 4 Sep 2011 11:38:53 +0000 (11:38 +0000)]
Fix #28500: Reshape in multires modifier makes blender crash
Multires doesn't store displacement for base mesh and reshaping when
multires subdivision level is set to zero is crappy.
Add report that reshape can't work with base level and cancel reshape operator.
Sergey Sharybin [Sun, 4 Sep 2011 11:13:41 +0000 (11:13 +0000)]
Fix #28423: Screw-modifier crash in cunjunction with subsurf modifier
Problems was caused by angle=2*pi and steps=2 in screw modifier.
Such configuration produced duplicated geometry to close object
and it was confusing for subsurf cache.
Restrict steps=2 for screw modifier now, so now 3<=steps<=512.
Nathan Letwory [Sun, 4 Sep 2011 02:12:03 +0000 (02:12 +0000)]
Prevent potential crasher, commonEffects could be empty.
Mitchell Stokes [Sun, 4 Sep 2011 01:42:47 +0000 (01:42 +0000)]
BGE animations: fixing initialization order issues for BL_ActionActuator and BL_ArmatureObject. Thanks to z0r for pointing them out and providing a fix.
Mitchell Stokes [Sun, 4 Sep 2011 01:27:16 +0000 (01:27 +0000)]
BGE animations: Fixing a potential crash when using camera IPOs. The IPOs were being created off of blendercamera->adt->action when they should have been using the supplied action. Thanks to z0r for pointing out the problem and a potential fix.
Nathan Letwory [Sun, 4 Sep 2011 01:13:44 +0000 (01:13 +0000)]
Fix [#28322] COLLADA imports messed up UVs
Reported by Chad Gleason
Imported index order could put mface->v4==0. We already know amount of verts, so use that instead.
Nathan Letwory [Sun, 4 Sep 2011 00:15:59 +0000 (00:15 +0000)]
Some whitespace changes