11 years agoCommand line options to set blender system environment variables.
Campbell Barton [Wed, 19 Jan 2011 21:30:23 +0000 (21:30 +0000)]
Command line options to set blender system environment variables.
Added because CTest has no convenient way to set environment vars for commands it runs.

 --env-system-config -> BLENDER_SYSTEM_CONFIG
 --env-system-datafiles -> BLENDER_SYSTEM_DATAFILES
 --env-system-scripts -> BLENDER_SYSTEM_SCRIPTS
 --env-system-plugins -> BLENDER_SYSTEM_PLUGINS
 --env-system-python -> BLENDER_SYSTEM_PYTHON

11 years agoset variable as unused.
Campbell Barton [Wed, 19 Jan 2011 19:58:44 +0000 (19:58 +0000)]
set variable as unused.

11 years agoBugfix #25613
Ton Roosendaal [Wed, 19 Jan 2011 18:07:13 +0000 (18:07 +0000)]
Bugfix #25613

Dropping file in Blender from pre 2.5 period caused eternal loop
loading .blend files :)

11 years agoBugfix #25720
Ton Roosendaal [Wed, 19 Jan 2011 17:10:05 +0000 (17:10 +0000)]
Bugfix #25720

Preview icons got lost... commit of yesterday caused it.
Conflict between preview render icons, and brush icons...

11 years agoBugfix #25652
Ton Roosendaal [Wed, 19 Jan 2011 14:19:20 +0000 (14:19 +0000)]
Bugfix #25652

Report was that move-to-layer menu failed. The real cause was
more complex; had to dive deep in the dungeons of the interface
code that handled undos and operators. Found several issues:

- popup menus (like redo operator, color picker) executed again
  on a mouse-exit
- far too many buttons were sending undo pushes; even worse, in
  the operator redo-panel each button action was pushed twice
- in case operator redo-buttons have own callbacks (like layer
  buttons) the redo wasn't working
- layerbutton menu was called without creating a proper undo/redo

Things should all work smoother now!

On todo:
- better definition and handling of all versions for operator menus
  (four types now, not fun)
  also: make operator "do" menu, which on first action does operator
  and then switches to redo-ing
- bring back Undo menu, to list the undo stack and jump in it.

11 years agoChanged Brightness/Contrast node to use also buffer inputs for the B/C inputs. These...
Lukas Toenne [Wed, 19 Jan 2011 13:32:59 +0000 (13:32 +0000)]
Changed Brightness/Contrast node to use also buffer inputs for the B/C inputs. These were only working with single values.

11 years agoAdded missing updates for NLA RNA settings
Joshua Leung [Wed, 19 Jan 2011 10:54:34 +0000 (10:54 +0000)]
Added missing updates for NLA RNA settings

11 years agoNLA Editor: Added "Sync Action Length" operator to Edit menu
Joshua Leung [Wed, 19 Jan 2011 10:45:35 +0000 (10:45 +0000)]
NLA Editor: Added "Sync Action Length" operator to Edit menu

Although strictly-speaking, this only applies to a certain type of NLA
Strip (there are 3 types), but since only the classic "Action Clip"
gets much attention, it's probably worth exposing this here too to
make batch editing of strips a bit easier.

11 years agoFix for [#25705] Crashing doing Bake in Partile System in Particle Mode
Janne Karhu [Wed, 19 Jan 2011 09:33:09 +0000 (09:33 +0000)]
Fix for [#25705] Crashing doing Bake in Partile System in Particle Mode
* Missing null check.

11 years agonew command line option '--factory-startup' to skip reading startup.blend. useful...
Campbell Barton [Wed, 19 Jan 2011 09:13:24 +0000 (09:13 +0000)]
new command line option '--factory-startup' to skip reading startup.blend. useful for testing with a predictable environment.
also commented python benchmark prints on exit, can enable when profiling later.

11 years agoNLA Editor: Swap Strips (Alt-F) and Bugfixes
Joshua Leung [Tue, 18 Jan 2011 23:38:36 +0000 (23:38 +0000)]
NLA Editor: Swap Strips (Alt-F) and Bugfixes

1) Added a new operator to swap the order of strips within a track
This makes it possible to select two strips (or more precisely, two
islands of consecutive + selected strips) in a single track and change
the order in which the appear without needing a extra tracks to
perform the move through.

As usual, the non-overlapping rules apply, so there may be some cases
where swapping in this way is not possible without adjusting the
intermediate strips first manually. Otherwise, everything just gets
too tricky to manage deciding what adjustments should be done to the
obstructing strips to make a fit.

2) Freeing meta-strips didn't free their local data properly (i.e.
modifiers they may have had).

3) Adding strips to tracks, where the endframes for the strips
overlapped would cause problems with incorrect ordering of strips. I
still need to double-check whether evaluation works ok in this case...

11 years agomove release/test to source/test, there is nothing release about this dir.
Campbell Barton [Tue, 18 Jan 2011 23:12:02 +0000 (23:12 +0000)]
move release/test to source/test, there is nothing release about this dir.

11 years agoBGE BugFix [#25711]render.setBackgroundColor() does not work:
Dalai Felinto [Tue, 18 Jan 2011 22:27:18 +0000 (22:27 +0000)]
BGE BugFix [#25711]render.setBackgroundColor() does not work:
Since rev.2 (hans ftw) we have a strange situation where horizon color was being used at Convert time for the WorldInfo background color (and for the fog). However through the Python API only the Rasterizer background color was being updated. On top of that the KX_KetsjiEngine.cpp::SetBackGround was using the WorldInfo bgcolor when render mode was the potato one (TEXTURED). Bottomline, when in potato mode the glClearColor used was the original one in worldinfo, not the API updated one in Rasterized.

11 years agosupport building with python3.2
Campbell Barton [Tue, 18 Jan 2011 21:39:50 +0000 (21:39 +0000)]
support building with python3.2

11 years agoFix [#25678]: (Ghost Cocoa) Fix character encoding translation for filenames (open...
Damien Plisson [Tue, 18 Jan 2011 20:53:20 +0000 (20:53 +0000)]
Fix [#25678]: (Ghost Cocoa) Fix character encoding translation for filenames (open & window title display)

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

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

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

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

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

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

11 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()

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

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

11 years agobgl.Buffer()
Campbell Barton [Tue, 18 Jan 2011 03:49:28 +0000 (03:49 +0000)]
 - 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.

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

11 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

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

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

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

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

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

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

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

11 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

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

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

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.