blender.git
8 years agoFix for "[#25700] 2.56: Rotation Mode: Quaternion shows wrong orientation of the...
Konrad Kleine [Tue, 18 Jan 2011 15:02:58 +0000 (15:02 +0000)]
Fix for "[#25700] 2.56: Rotation Mode: Quaternion shows wrong orientation of the object".

There was a small typing error that made object and armatures rotate twice the magnitude when in quaternion rotation mode.

8 years agoAdded group verification after autoconnect to avoid linked+external group sockets.
Lukas Toenne [Tue, 18 Jan 2011 14:49:06 +0000 (14:49 +0000)]
Added group verification after autoconnect to avoid linked+external group sockets.

8 years agoBugfix, irc report: general view3d operator poll() was reading NULL
Ton Roosendaal [Tue, 18 Jan 2011 14:34:59 +0000 (14:34 +0000)]
Bugfix, irc report: general view3d operator poll() was reading NULL
caused by commit for fix [#25691] 16 hours ago.

8 years agoAdded a check in nodeGroupVerify to detect if a tree is actually a group tree. This...
Lukas Toenne [Tue, 18 Jan 2011 13:28:18 +0000 (13:28 +0000)]
Added a check in nodeGroupVerify to detect if a tree is actually a group tree. This is necessary to avoid the group-in-group error if the function is called for a tree that already contains group nodes.

8 years agorename fcurve.keyframe_points.add() --> insert()
Campbell Barton [Tue, 18 Jan 2011 11:27:52 +0000 (11:27 +0000)]
rename fcurve.keyframe_points.add() --> insert()
add new add function which allocates a number of points instead.

8 years agoBug fix: particle dynamics were being calculated if point cache was only half baked...
Janne Karhu [Tue, 18 Jan 2011 09:25:37 +0000 (09:25 +0000)]
Bug fix: particle dynamics were being calculated if point cache was only half baked (reported by Michael Fox in #blendercoders)
* When a simulation is baked no dynamics calculations should happen anymore (even outside of baked frame range) since these can be very time consuming and baked simulations are supposed to be fast!

8 years agorecent commit broke Mesh.from_pydata()
Campbell Barton [Tue, 18 Jan 2011 06:35:26 +0000 (06:35 +0000)]
recent commit broke Mesh.from_pydata()

8 years agoSmall fix for my last fix: ignore the `preview' flag; if either size
Nicholas Bishop [Tue, 18 Jan 2011 04:32:41 +0000 (04:32 +0000)]
Small fix for my last fix: ignore the `preview' flag; if either size
has been marked for update then do it regardless. Otherwise changing
the texture type doesn't always update the brush texture preview.

8 years agoMore fixes for bug [#25649], Image editor paint icon missing until
Nicholas Bishop [Tue, 18 Jan 2011 04:08:01 +0000 (04:08 +0000)]
More fixes for bug [#25649], Image editor paint icon missing until
enter weight paint, hopefully fully fixed this time

* The texture selector for brushes wasn't updating. Seems that preview
  images have two sizes, small (icon) and big, but it was only
  updating if the icon size was set to update. Now both are checked.

* Also changed the previewimage arrays to use the already-existing
  PREVIEW_MIPMAPS define, makes it a little clearer what the arrays
  are for.

8 years agobgl.Buffer()
Campbell Barton [Tue, 18 Jan 2011 03:49:28 +0000 (03:49 +0000)]
bgl.Buffer()
 - invalid dimension type could be passed without raising an error.
 - negative dimensions could crash blender, now they raise errors.
 - zero length dimension arg was not detected.
 - floating point lengths were accepted, now only allow ints.

 also comment unused vars.

8 years agobad spelling; 'indicies' --> 'indices'
Campbell Barton [Tue, 18 Jan 2011 01:58:19 +0000 (01:58 +0000)]
bad spelling; 'indicies' --> 'indices'

8 years agodocument Mesh.from_pydata() [#25688] undocumted functions in pyapi
Campbell Barton [Tue, 18 Jan 2011 01:38:14 +0000 (01:38 +0000)]
document Mesh.from_pydata() [#25688] undocumted functions in pyapi

8 years agoBugfix [#25684b] Surface and Stroke options are not working with Use
Joshua Leung [Tue, 18 Jan 2011 01:04:14 +0000 (01:04 +0000)]
Bugfix [#25684b] Surface and Stroke options are not working with Use
Sketching Sessions.

Fix for secondary issue noted in this bug report. Some of the code for
the fancy 3d view sketching options needed to be moved around so that
there is a clearer "paint/sketch session" and "stroke" separation
between various stages. There's still some more stuff that needs to be
done here before I think it's totally cleaned up.

8 years agooption for the path iterator to loop over packed files so their dir separator can...
Campbell Barton [Tue, 18 Jan 2011 00:10:11 +0000 (00:10 +0000)]
option for the path iterator to loop over packed files so their dir separator can be switched on file load.

8 years agofix [#25694] Center View (Home Key)
Campbell Barton [Mon, 17 Jan 2011 23:47:11 +0000 (23:47 +0000)]
fix [#25694] Center View (Home Key)

8 years agofix missing notifier [#25682] bpy.data.materials['XXX'].texture_slot.clear(0) dosen...
Campbell Barton [Mon, 17 Jan 2011 23:30:28 +0000 (23:30 +0000)]
fix missing notifier [#25682] bpy.data.materials['XXX'].texture_slot.clear(0) dosen't delete texture from screen

8 years agofix [#25691] Lasso select on 3D Text editing segfaults
Campbell Barton [Mon, 17 Jan 2011 22:37:24 +0000 (22:37 +0000)]
fix [#25691] Lasso select on 3D Text editing segfaults
poll function was incorrect.

8 years ago== file browser ==
Andrea Weikert [Mon, 17 Jan 2011 20:10:18 +0000 (20:10 +0000)]
== file browser ==
bring back nice shortening of filenames in thumbnail view, shortening at front and end is confusing.
- adds ... at the end to indicate that the filename has been shortened
- also cuts off at the end and not at both front and end now

Note: maybe this can be moved into button code or so in the future, but for now should work.

8 years agofix compile on MinGW, missing define in the mingw headers.
Andrea Weikert [Mon, 17 Jan 2011 19:39:25 +0000 (19:39 +0000)]
fix compile on MinGW, missing define in the mingw headers.

8 years agoBugfix 25683
Ton Roosendaal [Mon, 17 Jan 2011 18:38:44 +0000 (18:38 +0000)]
Bugfix 25683

Compositor operators now have better poll check, so they won't
show up in operator search or hotkeys for other node views.

- backimage move, size
- read renderlayers

8 years agoBugfix #25657
Ton Roosendaal [Mon, 17 Jan 2011 18:16:10 +0000 (18:16 +0000)]
Bugfix #25657

Three code fixes for 1 report. User experienced crashes while
painting on float buffer + having preview renders on.

- Texture Nodes: Image was re-allocated without using
  proper thread lock
- Paint code: old convention to free the byte rect from
  a float image as signal to re-create now is a proper
  flag. This keeps image memory unchanged. Nice for render.
- Imbuf: call to make a byte rect from float was freeing
  mipmaps unnecessary.

8 years agoBugfix #25681
Ton Roosendaal [Mon, 17 Jan 2011 15:16:08 +0000 (15:16 +0000)]
Bugfix #25681

Python API allowed to make links with input->output reversed.
Now node api checks for this case and flips order.

8 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

8 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

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

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

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

8 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

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

8 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

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

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

8 years agoAdding links to groups using the links.new 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 links.new function in RNA wasn't updating the group owntype. This lead to sockets being linked and external at the same time.

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

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.

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

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

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

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

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

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

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.