blender.git
8 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.

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

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

8 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

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

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.

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

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

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

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

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

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

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

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

8 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().

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

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

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

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

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

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

8 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
meters/inches.

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

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

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

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

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

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

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

8 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 https://svn.blender.org/svnroot/bf-blender/branches/blender2.4/release/scripts/ply_import.py release/scripts/op/io_mesh_ply/import_ply.py

8 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
brightness

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

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

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

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

8 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(...)

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

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

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

8 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

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

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

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

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

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

8 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
Session

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

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.

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

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

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

Small cleanup, de-duplicated the code for combining proxies

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

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

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

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

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

8 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

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

8 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

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

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

8 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 NlaTrack.active() function with a property, since this is used everywhere else.

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

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

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

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

8 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
them.

8 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

Bone.bbone_x
Bone.bbone_z

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

<quote>
Adds:

AnimData.nla_tracks.new(prev)
* (optional) prev -- add new track after this track

AnimData.nla_tracks.remove(track)

AnimData.nla_tracks.active(track)
* (optional) track -- track to set active
* returns active track

NlaTrack.strips.new(name, 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

NlaTrack.strips.remove(strip)
</quote>

---

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.

8 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
values.

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.

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

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

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

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

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

Examples:

Glass sphere, mirror cube and sphere, look how it ignores bump and shadow
http://www.blender.org/bf/derivative256.png

in svn now:
http://www.blender.org/bf/derivative-svn.png

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

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

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

8 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

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

8 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

8 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

8 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"

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

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

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

8 years agouse size clamped string copying,
Campbell Barton [Tue, 11 Jan 2011 05:58:47 +0000 (05:58 +0000)]
use size clamped string copying,
also some compilers complain of using sprintf(val, str) so replace with BLI_strncpy().

8 years agochange rna function action.fcurves.add() so options an enum flag rather then booleans.
Campbell Barton [Tue, 11 Jan 2011 04:52:17 +0000 (04:52 +0000)]
change rna function action.fcurves.add() so options an enum flag rather then booleans.
(rna flags were not available when this was originally written)
 action.fcurves.add(frame, val, 1,1,1) --> .add(frame, val, {'REPLACE', 'NEEDED', 'FAST'})

8 years agobugfix [#25577] Ctrl-Z after adding Color Ramp key resets ramp.
Campbell Barton [Tue, 11 Jan 2011 03:22:37 +0000 (03:22 +0000)]
bugfix [#25577] Ctrl-Z after adding Color Ramp key resets ramp.
 buttons would not add an undo event if the button had no tooltip/draw-string.

 add a fallback string 'Unknown Action' so undo's are predictable.

8 years agoinitial x3d/vrml importer port from 2.4x.
Campbell Barton [Tue, 11 Jan 2011 02:49:01 +0000 (02:49 +0000)]
initial x3d/vrml importer port from 2.4x.
some files import now.
- no animation support yet
- no rad/deg conversion changes from 2.4x
- matrix multiplication still needs switching.

8 years ago- bpy.data.lamps.new() now takes a type argument since lamp type also sets class...
Campbell Barton [Tue, 11 Jan 2011 02:30:01 +0000 (02:30 +0000)]
- bpy.data.lamps.new() now takes a type argument since lamp type also sets class type this avoids needing to use ugly lamp.type_recast() after changing type.
- default vertex color layer name was UTTex when added from python.

8 years ago"New Action" Operator:
Joshua Leung [Tue, 11 Jan 2011 00:39:59 +0000 (00:39 +0000)]
"New Action" Operator:

When creating new actions using the "new" button the Action Editor
header databrowse, or the NLA editor's "Animation Data" databrowse,
the existing action will get copied (if it exists) instead of an empty
action getting added everytime.

Apparently this behaviour is very good for being able to "version"
actions within a single .blend file (Bassam?)

8 years agotag unused vars.
Campbell Barton [Tue, 11 Jan 2011 00:21:43 +0000 (00:21 +0000)]
tag unused vars.

8 years agoFix [#25575] Collada import problem with Maya2010 exported collada files
Nathan Letwory [Mon, 10 Jan 2011 23:31:14 +0000 (23:31 +0000)]
Fix [#25575] Collada import problem with Maya2010 exported collada files
Reported by Morten Mikkelsen

It seems that the maya export may generate invalid joint UIDs. Skip these joints to prevent crash.

8 years ago- Local Markers are now taken into account correctly for operators
Joshua Leung [Mon, 10 Jan 2011 22:31:34 +0000 (22:31 +0000)]
- Local Markers are now taken into account correctly for operators
that used markers. I might've missed a few still, but at least a few
more cases will work now
- Accidentally broke keyframe selection on group channels in gpencil
commit, after misreading a call name.

8 years agoTodo #22395: Restoring Grease Pencil Editing Mode in DopeSheet Editor
Joshua Leung [Mon, 10 Jan 2011 22:10:28 +0000 (22:10 +0000)]
Todo #22395: Restoring Grease Pencil Editing Mode in DopeSheet Editor

This commit restores some basic functionality for retiming Grease
Pencil sketches. Some of the functionality that existed before still
hasn't been restored (namely snap/mirror tools as well as copy+paste),
though it should be possible to use this for basic retiming and
sketch-frame management again.

- There's still a lot of work required to get this up to the standard
of the rest of the animation editor code, as some of this code was
originally just hacked in based on the old-style code.
- Work is already required to not have to directly access the main db
global to get the list of Grease Pencil datablocks to show, but that
can come along with pending cleanups of the filtering code.

8 years agoSVN maintenance.
Guillermo S. Romero [Mon, 10 Jan 2011 21:30:14 +0000 (21:30 +0000)]
SVN maintenance.

8 years agoaction paste properties were assigned to copy operator instead.
Campbell Barton [Mon, 10 Jan 2011 17:48:38 +0000 (17:48 +0000)]
action paste properties were assigned to copy operator instead.

8 years agorna collection sizes for face data layers were invalid.
Campbell Barton [Mon, 10 Jan 2011 17:46:34 +0000 (17:46 +0000)]
rna collection sizes for face data layers were invalid.
This meant python could do...
  mesh.uv_textures[0]
...on a mesh with 1 vertex color layer instead.

8 years agox3d import now passes pep8 checker
Campbell Barton [Mon, 10 Jan 2011 13:56:14 +0000 (13:56 +0000)]
x3d import now passes pep8 checker

8 years agox3d import tabs -> spaces
Campbell Barton [Mon, 10 Jan 2011 13:16:04 +0000 (13:16 +0000)]
x3d import tabs -> spaces

8 years agocopy x3d/vrml importer from blender 2.4x.
Campbell Barton [Mon, 10 Jan 2011 13:11:56 +0000 (13:11 +0000)]
copy x3d/vrml importer from blender 2.4x.
svn cp https://svn.blender.org/svnroot/bf-blender/branches/blender2.4/release/scripts/import_web3d.py release/scripts/op/io_scene_x3d/import_x3d.py

8 years ago[bugfix] Curve tilt button in 3d toolbar showing wrong shortcut
Luca Bonavita [Mon, 10 Jan 2011 12:50:46 +0000 (12:50 +0000)]
[bugfix] Curve tilt button in 3d toolbar showing wrong shortcut

Added Ctrl-T to Curves Tilt button in the toolbar (edit mode), currently was reporting Alt-S for tilt
(reported by Rickyx here http://www.kino3d.com/forum/viewtopic.php?f=21&t=8485&start=0)

Also added the label "Tilt" to the tilt transform in the Curve > Control points header submenu, currently was just "Transform"

8 years agoBug fix: effectors in pre 2.5 files didn't work due to a forgotten flag in do_versions.
Janne Karhu [Mon, 10 Jan 2011 11:53:07 +0000 (11:53 +0000)]
Bug fix: effectors in pre 2.5 files didn't work due to a forgotten flag in do_versions.