11 years agotest commit for svn link in commit mail, part two
Nathan Letwory [Mon, 17 Jan 2011 10:47:31 +0000 (10:47 +0000)]
test commit for svn link in commit mail, part two

11 years agotest commit for svn link in commit mail
Nathan Letwory [Mon, 17 Jan 2011 10:43:51 +0000 (10:43 +0000)]
test commit for svn link in commit mail

11 years agoBugfix [#25667] "X-Axis Mirror" in the Pose Options panel toolbar is
Joshua Leung [Mon, 17 Jan 2011 10:35:04 +0000 (10:35 +0000)]
Bugfix [#25667] "X-Axis Mirror" in the Pose Options panel toolbar is
misleading (?)

"X-Axis Mirror" option didn't work in Pose Mode, so hiding this option
for now. Perhaps one day we could properly support this for all
operators there, but that is more of a long term todo...

11 years agomisc maintenance changes
Campbell Barton [Mon, 17 Jan 2011 08:31:57 +0000 (08:31 +0000)]
misc maintenance changes
- metaball tessellation functuion was calculating density when it didn't need to.
- image drawing was using a float as a loop counter, in extreme cases this could cause an infinite loop.
- remove/comment unused vars.

11 years agoMore consistency with order of action vs gp keyframes...
Joshua Leung [Mon, 17 Jan 2011 08:27:16 +0000 (08:27 +0000)]
More consistency with order of action vs gp keyframes...

11 years agoBugfix [#25674] No Box Select in Dopesheet
Joshua Leung [Mon, 17 Jan 2011 08:21:13 +0000 (08:21 +0000)]
Bugfix [#25674] No Box Select in Dopesheet

Border select was broken during Grease Pencil mode work

11 years agoremove/comment unused defines, also zero FileGlobal.filename to quiet valgrind.
Campbell Barton [Sun, 16 Jan 2011 21:12:38 +0000 (21:12 +0000)]
remove/comment unused defines, also zero FileGlobal.filename to quiet valgrind.

11 years agoThese files are needed for booleans (which I had disabled)
Campbell Barton [Sun, 16 Jan 2011 20:52:15 +0000 (20:52 +0000)]
These files are needed for booleans (which I had disabled)
 reverse merge:
svn merge . -r34357:34356

11 years agoremove MSVC 6.0 workaround.
Campbell Barton [Sun, 16 Jan 2011 20:25:47 +0000 (20:25 +0000)]
remove MSVC 6.0 workaround.

11 years agoremove unused memutil classes
Campbell Barton [Sun, 16 Jan 2011 19:55:50 +0000 (19:55 +0000)]
remove unused memutil classes

11 years agoAdding links to groups using the function in RNA wasn't updating the group...
Lukas Toenne [Sun, 16 Jan 2011 18:38:54 +0000 (18:38 +0000)]
Adding links to groups using the function in RNA wasn't updating the group owntype. This lead to sockets being linked and external at the same time.

11 years agoFixed bug [#25649] Image editor paint icon missing until enter weight
Nicholas Bishop [Sun, 16 Jan 2011 18:33:08 +0000 (18:33 +0000)]
Fixed bug [#25649] Image editor paint icon missing until enter weight

A couple underlying issues:

* Paint icon was looking only at the object mode to determine what the
  "current" mode is, but that gave problems when the object mode was
  anything other than texpaint, but 2D image paint was turned on. Fix
  was to also look at what space is being drawn, and only if it's in
  the 3D view does it look at the ob mode.

* The brushes lists weren't getting filtered correctly in the same
  case where 2D image paint was on but a different object mode is
  enabled. Fixed by changing the brush rna poll to look at the paint
  source, rather than the object mode.

11 years agoBugfix, IRC report
Ton Roosendaal [Sun, 16 Jan 2011 17:12:02 +0000 (17:12 +0000)]
Bugfix, IRC report

Texture nodes: including output node in group crashed when it got
connected. Note that this feature is not supported to do anything
else than temporarily giving an output when editing node groups.

11 years agoFix for 25655: Crashes with texture node in compositor.
Lukas Toenne [Sun, 16 Jan 2011 16:00:06 +0000 (16:00 +0000)]
Fix for 25655: Crashes with texture node in compositor.
Texture node was using the preview buffer instead of socket output buffers, which is already free'd at that point.

11 years agodefining types via python gave confusing errors because DefRNA.laststruct was being...
Campbell Barton [Sun, 16 Jan 2011 15:02:07 +0000 (15:02 +0000)]
defining types via python gave confusing errors because DefRNA.laststruct was being used for errors when the new property wasn't on the last struct.
added CONTAINER_RNA_ID() define\13 to get the ID from the ContainerRNA type.

11 years agodetect mathutils types with mathutils_array_parse(), was using PySequence_Fast()...
Campbell Barton [Sun, 16 Jan 2011 11:26:01 +0000 (11:26 +0000)]
detect mathutils types with mathutils_array_parse(), was using PySequence_Fast(), converting into a tuple every time then back to a float array.
gives approx 6x speedup with eg mathutils.Vector(some_vector).

11 years agouse fast sequence functions for python's bpy.props.EnumProperty() arg parsing.
Campbell Barton [Sun, 16 Jan 2011 10:36:27 +0000 (10:36 +0000)]
use fast sequence functions for python's bpy.props.EnumProperty() arg parsing.

11 years agoDefining bpy.props.EnumProperty(... , options={'ENUM_FLAG'}) wasnt working right...
Campbell Barton [Sun, 16 Jan 2011 10:08:20 +0000 (10:08 +0000)]
Defining bpy.props.EnumProperty(... , options={'ENUM_FLAG'}) wasnt working right with default values.

11 years agofix for using un-initialized stack memory with bullet triangle mesh collisions.
Campbell Barton [Sun, 16 Jan 2011 06:16:28 +0000 (06:16 +0000)]
fix for using un-initialized stack memory with bullet triangle mesh collisions.
the 4th component of the vector is used later when copying the vector.

11 years agopy api: bpy.path.abspath(), option to return relative to a path other then the curren...
Campbell Barton [Sat, 15 Jan 2011 20:35:31 +0000 (20:35 +0000)]
py api: bpy.path.abspath(), option to return relative to a path other then the current blend file.

11 years agomove to bf-extensions
Campbell Barton [Sat, 15 Jan 2011 19:36:01 +0000 (19:36 +0000)]
move to bf-extensions

11 years agobugfix [#25640] Cannot edit custom property values in it's popup window
Campbell Barton [Sat, 15 Jan 2011 19:15:35 +0000 (19:15 +0000)]
bugfix [#25640] Cannot edit custom property values in it's popup window

11 years agoBugfix:
Ton Roosendaal [Sat, 15 Jan 2011 18:00:46 +0000 (18:00 +0000)]

Texture nodes, the Image node didn't get initialized on load.
This caused the node to refuse accepting a new Image if a
file couldn't be found on saving.

11 years agoremove/comment unused defines.
Campbell Barton [Sat, 15 Jan 2011 16:14:57 +0000 (16:14 +0000)]
remove/comment unused defines.

11 years agomisc edits, no functional changes
Campbell Barton [Sat, 15 Jan 2011 15:48:46 +0000 (15:48 +0000)]
misc edits, no functional changes
- enabling/disabling no longer prints in the terminal unless in debug mode.
- remove 'header' struct from BLI_storage_types.h, from revision 2 and is not used.
- Add GCC property to guardedalloc to warn if the return value from allocation functions isn't used.

11 years agoIRC bugreport fix: thumb brush works incorrect when using tablet by Dan McGrath ...
Sergey Sharybin [Sat, 15 Jan 2011 14:48:44 +0000 (14:48 +0000)]
IRC bugreport fix: thumb brush works incorrect when using tablet by Dan McGrath (troubled)

Quite silly fix, not sure if it could be smarter with current events/brushes design.
Use pressure_value from first brush step for brushes which don't support strokes -- thumb.
brush, brushes with anchored stroke method.

Should be fixed in nicer way after events redesigning.

P.S. Tried to place pressure saving into invaliants update fuunction, but it seens
     that this function wouldn't know about pressure yet.

11 years agoBugfix #25636
Ton Roosendaal [Sat, 15 Jan 2011 14:07:11 +0000 (14:07 +0000)]
Bugfix #25636

On using loop-selects, the active vertex got cleared, it could still
simply indicate one of the vertices of indicated edge to become active.
That keeps the Ui for vertex-groups drawing correct, for example.

Also made loop-ring select store active edge for tools, like the loop-select.

11 years agoFix for [#25633] Particles display switching causes crash when Velocity disp. ON
Janne Karhu [Sat, 15 Jan 2011 12:29:22 +0000 (12:29 +0000)]
Fix for [#25633] Particles display switching causes crash when Velocity disp. ON
* Particle draw data wasn't freed properly in some cases.
* Velocity + circle draw type also crashed due to missing null pointer check.

11 years agoFix for [#25637] curveguide forcefield(Kink: Braid) + particlesystem cause crash...
Janne Karhu [Sat, 15 Jan 2011 12:00:15 +0000 (12:00 +0000)]
Fix for [#25637] curveguide forcefield(Kink: Braid) + particlesystem cause crash by Null Pointer in some cases
* Missing null pointer check.

11 years agoerror in last commit, also skip getting vars for wm_operator_reports() when there...
Campbell Barton [Fri, 14 Jan 2011 21:45:49 +0000 (21:45 +0000)]
error in last commit, also skip getting vars for wm_operator_reports() when there are no reports.

11 years agoremove unused vars & avoid some clang warnings.
Campbell Barton [Fri, 14 Jan 2011 21:06:28 +0000 (21:06 +0000)]
remove unused vars & avoid some clang warnings.

11 years agochecking wrong null pointer in edit_modifier_poll_generic().
Campbell Barton [Fri, 14 Jan 2011 19:35:59 +0000 (19:35 +0000)]
checking wrong null pointer in edit_modifier_poll_generic().

11 years agoapply fix from r34275 to BLI_dynstr_appendf(), dont chop off last character for ...
Campbell Barton [Fri, 14 Jan 2011 19:15:06 +0000 (19:15 +0000)]
apply fix from r34275 to BLI_dynstr_appendf(), dont chop off last character for >256 length strings.

11 years agonew startup.blend with official io addons enabled,
Campbell Barton [Fri, 14 Jan 2011 17:41:33 +0000 (17:41 +0000)]
new startup.blend with official io addons enabled,
also include STL since this is an important format which we can support officially.

11 years agomoving io scripts to 'addons' dir in extensions svn, leaving MDD format since I dont...
Campbell Barton [Fri, 14 Jan 2011 17:28:10 +0000 (17:28 +0000)]
moving io scripts to 'addons' dir in extensions svn, leaving MDD format since I dont maintain this.

11 years agoTodo item #19816: Wave modifier does not affect Curve Paths
Sergey Sharybin [Fri, 14 Jan 2011 16:57:53 +0000 (16:57 +0000)]
Todo item #19816: Wave modifier does not affect Curve Paths

Added new option for applyong modifiers on splines' points. This moves
tesselation point and path would be affected by modifiers which are applied on
splines' points.

11 years agoadd icons to show community vs official scripts as well as buttons to filter by suppo...
Campbell Barton [Fri, 14 Jan 2011 16:49:43 +0000 (16:49 +0000)]
add icons to show community vs official scripts as well as buttons to filter by support level (currently all scripts default to community)
 note: we need better icons for this.

 also formatting edit for ply import.

11 years agorename bl_addon_info --> bl_info, because this isnt necessarily used for addons.
Campbell Barton [Fri, 14 Jan 2011 15:21:13 +0000 (15:21 +0000)]
rename bl_addon_info --> bl_info, because this isnt necessarily used for addons.

11 years agoTransform tweak:
Joshua Leung [Fri, 14 Jan 2011 06:46:28 +0000 (06:46 +0000)]
Transform tweak:
2D Editors using the standard translation transform tool no longer
have their values converted. For instance, it simply didn't make much
sense in such editors to be showing frame numbers/timing in terms of

11 years agoBugfix [#25617] HOME Key in fcurve editor doesn't center properly
Joshua Leung [Fri, 14 Jan 2011 05:19:04 +0000 (05:19 +0000)]
Bugfix [#25617] HOME Key in fcurve editor doesn't center properly

* When euler-rotation F-Curves had a single keyframe only, the view
would be artifically extended to fill up to 57 (this comes from the
radians to degrees calculations) due to a combination of the bounds-
finding function enforcing a minimum separation of 1 unit between
min/max. This has now been moved to the operator-level where it gets
applied AFTER these conversions have taken effect

* F-Curves with samples only (i.e. baked F-Curves) would be ignored by
these operators. Was caused by using a poll calback that only
considered whether there were keyframes. Hopefully this is sufficient;
otherwise a hybrid poll method will be needed.

11 years agoDriver creation hack:
Joshua Leung [Fri, 14 Jan 2011 02:06:35 +0000 (02:06 +0000)]
Driver creation hack:

Drivers created from the Properties Editor for Materials and Textures
will now be created on Object-level instead of on their owner
Material/Texture as for their keyframes.

The intention of this hack is to allow users to be able to easily set
up drivers for materials and textures. Without this hack, users would
have had to do this manually via the Datablocks editor (I've described
this method a few times in detail, though this still attracts
complaints), as the way the depsgraph works does not allow ID blocks
other than Objects and directly-linked Object data to be driven. As a
result, although this hack can be done for these two cases, there are
no workarounds possible for Scene and Scene-linked settings.

There are 2 issues that will be noticed with this approach:
1) There may be confusion over why the drivers are found under Object
level and not Material/Texture level.
2) Driver status will not be shown in the buttons, leading to attempts
to try to keyframe the properties directly later and subsequent
confusion when finding that that won't work.

However, these are the sacrifices we'll need to make to get easy-setup
working in the meantime until the proper fixes can be done.

11 years agoadd ply import into the file menu.
Campbell Barton [Fri, 14 Jan 2011 00:23:21 +0000 (00:23 +0000)]
add ply import into the file menu.

11 years agoinitial 2.5x api port. basically working.
Campbell Barton [Fri, 14 Jan 2011 00:06:43 +0000 (00:06 +0000)]
initial 2.5x api port. basically working.

11 years agoReverting r33930 and r34202, which were related to bugs #21825 and
Joshua Leung [Thu, 13 Jan 2011 23:53:14 +0000 (23:53 +0000)]
Reverting r33930 and r34202, which were related to bugs #21825 and
#25554. As found by Daniel Lara (Pepeland) in #25554, the original
problems in #21825 all stemmed from the ChildOf constraint there
having an incorrect inverse set, which was altering the final results.

Now Auto-IK works nicely for old rigs again (i.e. FK arms on BBB rigs)

11 years agopython3 updates:
Campbell Barton [Thu, 13 Jan 2011 23:38:25 +0000 (23:38 +0000)]
python3 updates:

11 years agopep8 cleanup.
Campbell Barton [Thu, 13 Jan 2011 23:31:04 +0000 (23:31 +0000)]
pep8 cleanup.

11 years agoply importer from 2.4x, no changes made.
Campbell Barton [Thu, 13 Jan 2011 23:28:36 +0000 (23:28 +0000)]
ply importer from 2.4x, no changes made.
svn cp release/scripts/op/io_mesh_ply/

11 years agoBugfix [#25623] Intensity for Voxel data partially linked with
Joshua Leung [Thu, 13 Jan 2011 23:16:10 +0000 (23:16 +0000)]
Bugfix [#25623] Intensity for Voxel data partially linked with

Committing fix on behalf of Matt. VoxelData/PointDensity RNA-structs
had malformed paths

11 years agopep8 corrections.
Campbell Barton [Thu, 13 Jan 2011 23:00:51 +0000 (23:00 +0000)]
pep8 corrections.

11 years agoBugfix [#25620] Grease Pencil: crash when using Ctrl+Z while drawing
Joshua Leung [Thu, 13 Jan 2011 22:59:48 +0000 (22:59 +0000)]
Bugfix [#25620] Grease Pencil: crash when using Ctrl+Z while drawing

Crazy users! Who on earth would try undoing in the middle of an action
(here the crash occurred while a mouse button was still held)?!

(At least it wouldn't have been possible for those using the DKEY +
mousedrag method of invoking strokes though...)

11 years agofix for x3d importer
Campbell Barton [Thu, 13 Jan 2011 22:44:47 +0000 (22:44 +0000)]
fix for x3d importer
- files blender exports (blender uses unusual array formatting).
- scene needed to be rotated on import.
- lamp spot size was half as big as it needed to be.

x3d export typo broke image export.

11 years agomisc python api improvements
Campbell Barton [Thu, 13 Jan 2011 21:44:18 +0000 (21:44 +0000)]
misc python api improvements
- rna array parsing was using PySequence_Size() in a loop, this can  be slow to run so only call once.
- assigning a single value to a multi-dimensional array was missing type check.
- improve exception messages for rna array type errors.
- simplify vector slice assignment by using mathutils_array_parse(...)

11 years agoFix #25609: Text Editor: Ctrl+Z error with Word Wrap
Sergey Sharybin [Thu, 13 Jan 2011 20:16:36 +0000 (20:16 +0000)]
Fix #25609: Text Editor: Ctrl+Z error with Word Wrap

Not updated line number was passing to undo stack.

11 years agofeature request from colin levy, camera lens stamp.
Campbell Barton [Thu, 13 Jan 2011 19:16:35 +0000 (19:16 +0000)]
feature request from colin levy, camera lens stamp.

11 years agoBugfix #25614
Ton Roosendaal [Thu, 13 Jan 2011 19:01:27 +0000 (19:01 +0000)]
Bugfix #25614

Reporter saw weird fgons and edge creases on spin-mesh.

Appeared that the edge-flag copying code happened after
freeing edges. Already since May 2007 or so... weird!

Also in this commit a couple of simple cleanups.

11 years agobugfix [#25578] assigning to multi-dimensional arrays fails
Campbell Barton [Thu, 13 Jan 2011 16:00:14 +0000 (16:00 +0000)]
bugfix [#25578] assigning to multi-dimensional arrays fails

11 years agobugfix [#25588] Not work fcurve.keyframe_points.add
Campbell Barton [Thu, 13 Jan 2011 14:29:57 +0000 (14:29 +0000)]
bugfix [#25588] Not work fcurve.keyframe_points.add

The problem was flag-enums were being treated as regular enums, a default value of 0 was using the first enum item, whereas with flag enums we want to be able to use 0 as a default value to specify all flags are off.

11 years agospeedup fluid file reading, seek past arrays rather then reading them & use fewer...
Campbell Barton [Thu, 13 Jan 2011 11:06:12 +0000 (11:06 +0000)]
speedup fluid file reading, seek past arrays rather then reading them & use fewer function calls to gzread().
also added missing MEM_freeN(), though it would only leak in exceptional cases.

11 years agorevert r34284, this fix was incorrect.
Campbell Barton [Thu, 13 Jan 2011 10:14:03 +0000 (10:14 +0000)]
revert r34284, this fix was incorrect.

11 years agoPossible fix for [#24924] crash-Fluids
Janne Karhu [Thu, 13 Jan 2011 10:10:13 +0000 (10:10 +0000)]
Possible fix for [#24924] crash-Fluids
* In some rare cases gzread has problems with the fluid files. This could be minor file corruption or some strange thread issue, but checking the amount of read bytes always after read seems to give a graceful way out.

11 years agosmall feature for file manager, pasting a full file path into the directory field...
Campbell Barton [Thu, 13 Jan 2011 07:25:18 +0000 (07:25 +0000)]
small feature for file manager, pasting a full file path into the directory field will split the dir/file.
nice when you have a list of file paths in a terminal/editor and want to open one.

11 years agoBugfix [#25597] Grease Pencil crash when undoing during a Sketching
Joshua Leung [Thu, 13 Jan 2011 06:14:14 +0000 (06:14 +0000)]
Bugfix [#25597] Grease Pencil crash when undoing during a Sketching

As the key combination for undo was unhandled by Grease Pencil
operator and allowed to execute, some of the lingering Grease Pencil
data would get corrupted by undo as some flags may still have been

This commit attempts to fix.workaround this problem by catching undo
events, using the internal "delete last stroke" functionality to
emulate undo-like behaviour as expected but without the associated
risks. The underlying functionality used was already part of the
original 2.4 implementation, but was exposed via the GUI instead there
where it was less useful.


Other tweaks related to Grease Pencil:
1) Spacebar can be used to end Sketching Sessions too now
2) Grease Pencil animation editor now displays GP datablocks in light
blue (i.e. "sub-id") colours as per dopesheet instead of them being
presented like groups. This better reflects their true nature.

11 years agofix for NULL missing pointer check, reported on IRC by admix.
Campbell Barton [Thu, 13 Jan 2011 05:05:10 +0000 (05:05 +0000)]
fix for NULL missing pointer check, reported on IRC by admix.
also rename BVH class for consistency.

11 years agoremove/comment unused vars
Campbell Barton [Thu, 13 Jan 2011 04:53:55 +0000 (04:53 +0000)]
remove/comment unused vars
also removed unnecessary NULL checks (where the pointer was used later without checking).

11 years agoSculpt:
Nicholas Bishop [Thu, 13 Jan 2011 01:02:55 +0000 (01:02 +0000)]

Small cleanup, de-duplicated the code for combining proxies

11 years agoBugfix #25570
Ton Roosendaal [Wed, 12 Jan 2011 18:00:23 +0000 (18:00 +0000)]
Bugfix #25570

The tool-redo depends on a working undo system, so it can rewind
a step and then redo operator with new settings. When a user
disables undo, this won't work.

Now the properties for redo operator (toolbar, F6) will grey out
when a redo isn't possible.

11 years agofix [#25590] Export to X3D of Text object does not assign material to object in X3D...
Campbell Barton [Wed, 12 Jan 2011 17:57:00 +0000 (17:57 +0000)]
fix [#25590] Export to X3D of Text object does not assign material to object in X3D file.

11 years agosimple add mesh operator template.
Campbell Barton [Wed, 12 Jan 2011 17:29:54 +0000 (17:29 +0000)]
simple add mesh operator template.

11 years agobugfix [#24774] Lattice modifier+Dupligroup+Texture solid=weird result
Campbell Barton [Wed, 12 Jan 2011 16:53:27 +0000 (16:53 +0000)]
bugfix [#24774] Lattice modifier+Dupligroup+Texture solid=weird result
new 2.5x code was not passing group recalc flags onto objects within them.

11 years agobugfix [#25595] Adding Torus when in edit mode strange behavior.
Campbell Barton [Wed, 12 Jan 2011 15:45:00 +0000 (15:45 +0000)]
bugfix [#25595] Adding Torus when in edit mode strange behavior.
also added Align View option and made local view cursor work.

11 years agofix [#25600] Cannot add meta-object when in edit-mode
Campbell Barton [Wed, 12 Jan 2011 14:08:11 +0000 (14:08 +0000)]
fix [#25600] Cannot add meta-object when in edit-mode

11 years agoFix for [#25572] crash when changing vertex group density in particle mode
Janne Karhu [Wed, 12 Jan 2011 10:01:33 +0000 (10:01 +0000)]
Fix for [#25572] crash when changing vertex group density in particle mode
* Hair was freed & redone on changes, but particle mode data wasn't updated.

11 years agofix compile error for MSVC; no va_copy here. Patch pasted to me by Keith Boshoff
Nathan Letwory [Wed, 12 Jan 2011 10:00:47 +0000 (10:00 +0000)]
fix compile error for MSVC; no va_copy here. Patch pasted to me by Keith Boshoff

11 years agoadd x3d/vrml importer into the menu.
Campbell Barton [Wed, 12 Jan 2011 08:20:09 +0000 (08:20 +0000)]
add x3d/vrml importer into the menu.

11 years agovrml/x3d import
Campbell Barton [Wed, 12 Jan 2011 08:02:27 +0000 (08:02 +0000)]
vrml/x3d import
now its basically usable, next step is to add menu item.

update for changes in mathutils api.
- fix radians/degrees usage
- correct matrix multiplication order
- primitives were being imported twice the size they should be.
- uv transformations were not working.

11 years agomodification to Joshua's commit r34270,
Campbell Barton [Wed, 12 Jan 2011 07:16:24 +0000 (07:16 +0000)]
modification to Joshua's commit r34270,
replace function with a property, since this is used everywhere else.

11 years agocomment array/collection skip(), since there was some confusion in this area which...
Campbell Barton [Wed, 12 Jan 2011 06:16:15 +0000 (06:16 +0000)]
comment array/collection skip(), since there was some confusion in this area which caused bugs on index lookups.

11 years agoBLI_dynstr_vappendf() was cutting off the last character when allocating strings.
Campbell Barton [Wed, 12 Jan 2011 06:01:07 +0000 (06:01 +0000)]
BLI_dynstr_vappendf() was cutting off the last character when allocating strings.

11 years agoBLI_dynstr_vappendf() was crashing with strings above 256 chars, this happens with...
Campbell Barton [Wed, 12 Jan 2011 05:49:33 +0000 (05:49 +0000)]
BLI_dynstr_vappendf() was crashing with strings above 256 chars, this happens with some long reports.
Problem was using va_list value more then once, fix by using va_copy().

Note, va_copy() is c99 spec but only alternative I can see is to turn BLI_dynstr_vappendf() into a macro which calls va_start/end inline.

11 years agoremove redundant assignments & unused vars.
Campbell Barton [Wed, 12 Jan 2011 03:41:12 +0000 (03:41 +0000)]
remove redundant assignments & unused vars.

also minor functional changes
- OBJECT_OT_make_links_data() type property is now assigned to the operator property (so popup menu can find it)
- removing BG image now returns cancelled if no image is removed.

11 years agoPatch [#25409] Changes to panels header "open/close" and "drag" zones
Joshua Leung [Wed, 12 Jan 2011 02:15:38 +0000 (02:15 +0000)]
Patch [#25409] Changes to panels header "open/close" and "drag" zones
Submitted by: Peter Tarasenko (pit)

This patch switches the screen real-estate given to the "open/close"
and "drag" zones for panels.
- Now, the entire header is used for resizing (open/close) panels
instead of just the triangle widget being used for this. This makes it
a larger target for clicking on, making it easier to do so (Fitt's Law
in action!)
- Dragging panels now is relegated to the "grabber" zone on the top-
right corner only now. This reflects the lesser importance of panel
reordering in the panel designs now over being able to open/close

11 years agoPatch [#24808] B-Bone display size
Joshua Leung [Wed, 12 Jan 2011 01:36:12 +0000 (01:36 +0000)]
Patch [#24808] B-Bone display size
Submitted by Dan Eicher (dna)

Adds the ability to resize b-bones (ctrl+alt+S) using the python api


11 years agoPatch [#24763] NLA Track & Strip methods
Joshua Leung [Wed, 12 Jan 2011 01:17:13 +0000 (01:17 +0000)]
Patch [#24763] NLA Track & Strip methods
Submitted by: Dan Eicher (dna)

* (optional) prev -- add new track after this track

* (optional) track -- track to set active
* returns active track, start, action)
NOTE: fails if the strip can't fit in the track as opposed to the
operator which will create a new track and add the strip to that.
* name -- name for new strip
* start -- start frame of new strip
* action -- action to assign to strip



I've resolved the issue (noted in the original patch) regarding the
validation of the created strip by creating and using a "dummy
AnimData" block to solve the missing dependencies.

11 years ago"Pointer" properties can now be reset to some kind of "default" value
Joshua Leung [Tue, 11 Jan 2011 22:32:18 +0000 (22:32 +0000)]
"Pointer" properties can now be reset to some kind of "default" value
when using the Numpad0 feature to reset properties to their default

While this implementation here is not a full/proper implementation, as
you cannot truly specify a default value for some pointers that may
require something other than NULL (i.e. nothing), this should be good
enough for the vast majority of (editable) cases which are fine if set
to NULL.

This is most noticeable with the Active Keying Set field in the
TimeLine header, where it's now possible to simply use Numpad0 to
clear it instead of using a confusing click+backspace+enter dance to
do the same thing.

11 years agoFix #25594: Adding mesh while in edit mode with multires - crash.
Sergey Sharybin [Tue, 11 Jan 2011 22:06:44 +0000 (22:06 +0000)]
Fix #25594: Adding mesh while in edit mode with multires - crash.

That primitives, which used ri crash blender, flips normals just after creation
and this normals flipping calls layers interpolation, but MDISPS layer
contains no data still.

Just added checking to layerInterp_mdisps.

11 years agoMore missing descriptions for operators
Joshua Leung [Tue, 11 Jan 2011 21:46:11 +0000 (21:46 +0000)]
More missing descriptions for operators

11 years agoGave all armature operators descriptions (for tooltips and API
Joshua Leung [Tue, 11 Jan 2011 21:37:23 +0000 (21:37 +0000)]
Gave all armature operators descriptions (for tooltips and API
reference docs)

11 years agoAdded operator to show all armature layers (similar to the 3D View
Joshua Leung [Tue, 11 Jan 2011 21:12:48 +0000 (21:12 +0000)]
Added operator to show all armature layers (similar to the 3D View
"Show All Layers"). This has been mapped to Ctrl-Accentkey

If necessary, you can alter your keymaps so that this operator is
invoked with its "all" property disabled. This will only toggle the
first row (first 16) layers, which is useful in most rigs for only
enabling all the layers with rig controls and not showing the layers
with rig mechanics.

11 years agoBugfix #25580
Ton Roosendaal [Tue, 11 Jan 2011 18:40:44 +0000 (18:40 +0000)]
Bugfix #25580

Raytracing didn't show soft shadow in reflections, nor did it do any
derivative even. Added a basic version for it in raytracer now, still
needs improvement on heavily curved surfaces. But it's better!


Glass sphere, mirror cube and sphere, look how it ignores bump and shadow

in svn now:

11 years agobugfix - collection index lookups was not working correctly when some items were...
Campbell Barton [Tue, 11 Jan 2011 17:01:12 +0000 (17:01 +0000)]
bugfix - collection index lookups was not working correctly when some items were skipped.

11 years agorevert own recent fix for collection length, this is incorrect, the bug needs to...
Campbell Barton [Tue, 11 Jan 2011 14:39:14 +0000 (14:39 +0000)]
revert own recent fix for collection length, this is incorrect, the bug needs to be fixed elsewhere.

11 years agoBugfix #25581
Ton Roosendaal [Tue, 11 Jan 2011 14:01:23 +0000 (14:01 +0000)]
Bugfix #25581

Pressure sensitivity for Sculpt 'strength' got lost in code cleanup.
Added warning in code, the function call is confusing.

11 years agocontinued x3d/vrml import update from 2.4x version
Campbell Barton [Tue, 11 Jan 2011 13:42:22 +0000 (13:42 +0000)]
continued x3d/vrml import update from 2.4x version
- parsed over 1000 vrml test files
- animataion import works again
- importing curves works again

11 years agoBugfix, own testing
Ton Roosendaal [Tue, 11 Jan 2011 12:36:49 +0000 (12:36 +0000)]
Bugfix, own testing

When pressure was zero, a sculpt brush was still being executed
with step amount divided by zero, and thus entering eternal loop.

Maybe tablet-specific this but I wonder how this never got reported...

11 years agoAdding script template for adding Builtin Keying Sets
Joshua Leung [Tue, 11 Jan 2011 11:25:24 +0000 (11:25 +0000)]
Adding script template for adding Builtin Keying Sets

11 years ago- Added operator to clear all transforms from Pose Bones. This makes
Joshua Leung [Tue, 11 Jan 2011 11:09:37 +0000 (11:09 +0000)]
- Added operator to clear all transforms from Pose Bones. This makes
it easier to reset a rig to its default pose again
- Refactored clear pose operators to separate out the common parts,
and made sure that they all had descriptions

11 years agobugfix [#25542] do not work? "Bind camera to Markers"
Campbell Barton [Tue, 11 Jan 2011 10:00:21 +0000 (10:00 +0000)]
bugfix [#25542] do not work? "Bind camera to Markers"

11 years agopy/mathutils fix for eternal loop with Matrix.Rotation().
Campbell Barton [Tue, 11 Jan 2011 09:41:26 +0000 (09:41 +0000)]
py/mathutils fix for eternal loop with Matrix.Rotation().
rotation range clamping used a while loop which would run forever when the value was so big subtracting a full revolution didnt change the value.

Solve by using fmod() and double precision angle.

11 years agoremove misc unused vars and correct theme name for face angles.
Campbell Barton [Tue, 11 Jan 2011 07:40:31 +0000 (07:40 +0000)]
remove misc unused vars and correct theme name for face angles.

11 years agocomment/remove unused vars from particle and multires code.
Campbell Barton [Tue, 11 Jan 2011 07:38:16 +0000 (07:38 +0000)]
comment/remove unused vars from particle and multires code.
also remove calls to dm->getFaceDataArray() within a loop for particle grid distribution,
instead call this once at the start and reuse the result.