blender.git
8 years agoRNA functions for adding timer (needed for demo mode, also useful for python modal...
Campbell Barton [Mon, 28 Mar 2011 04:55:24 +0000 (04:55 +0000)]
RNA functions for adding timer (needed for demo mode, also useful for python modal operators).
 - timer = WindowManager.event_timer_add(time_step, window=None)
 - WindowManager.event_timer_remove(timer)

Still TODO, is a way for python to check the timer identity.

8 years agoblenkernel: floats were being implicitly promoted to doubles, adjust to use floats.
Campbell Barton [Mon, 28 Mar 2011 04:22:50 +0000 (04:22 +0000)]
blenkernel: floats were being implicitly promoted to doubles, adjust to use floats.

8 years ago- quiet new warnings with gcc 4.6
Campbell Barton [Mon, 28 Mar 2011 02:34:55 +0000 (02:34 +0000)]
- quiet new warnings with gcc 4.6
- use BLI math funcs for normal float/short conversion.
- correct some un-intentional float/double promotions.

8 years agoset CMake's GCC warnings for GCC4.6.
Campbell Barton [Mon, 28 Mar 2011 02:11:51 +0000 (02:11 +0000)]
set CMake's GCC warnings for GCC4.6.
 -Wdouble-promotion -Wno-error=double-promotion
 -Wno-error=unused-but-set-variable

8 years agouvedit: floats were being implicitly promoted to doubles, adjust to use floats.
Campbell Barton [Mon, 28 Mar 2011 02:09:10 +0000 (02:09 +0000)]
uvedit: floats were being implicitly promoted to doubles, adjust to use floats.

8 years agoBugfix: One more place still using the old "keys" instead of
Joshua Leung [Sun, 27 Mar 2011 23:19:32 +0000 (23:19 +0000)]
Bugfix: One more place still using the old "keys" instead of
"key_blocks"

8 years ago[#26622] Blender crashes when calling transform operator
Martin Poirier [Sun, 27 Mar 2011 22:15:37 +0000 (22:15 +0000)]
[#26622] Blender crashes when calling transform operator

Add cancellation checks for time* transforms that only run in specific spaces.

Hide Transform Mode operator property (it shouldn't be modified after the operator is run), made default mode Translate, not the useless Dummy.

8 years agoRevert r34026, which in it turn reverted r33039. Removal breaks renderers that use...
Nathan Letwory [Sun, 27 Mar 2011 22:02:54 +0000 (22:02 +0000)]
Revert r34026, which in it turn reverted r33039. Removal breaks renderers that use COLLADA as their format through render() callback.

8 years ago[#24658] Switching to "maya" via interaction preset breaks when switching back
Martin Poirier [Sun, 27 Mar 2011 21:45:37 +0000 (21:45 +0000)]
[#24658] Switching to "maya" via interaction preset breaks when switching back
[#25045] User Preferences Input, not enough menu choices
[#26525] Saving the Maya preset and another key configs

Untangle keyconfig presets and interaction presets (maya keyconfig would set interaction setting, blender interaction would set keyconfig).

Preset menu on slash screen now displays a list of available keyconfigs (as before) but will also set the correspondant interaction presets, if it exists)

8 years agoProper traceback when addons fails AST parsing setp
Martin Poirier [Sun, 27 Mar 2011 20:52:50 +0000 (20:52 +0000)]
Proper traceback when addons fails AST parsing setp

8 years agoCOLLADA lamp blender profile: add the remainder of the lamp variables to export.
Nathan Letwory [Sun, 27 Mar 2011 17:57:14 +0000 (17:57 +0000)]
COLLADA lamp blender profile: add the remainder of the lamp variables to export.

8 years agosubsurf, derived mesh and other misc files: floats were being implicitly promoted...
Campbell Barton [Sun, 27 Mar 2011 17:22:04 +0000 (17:22 +0000)]
subsurf, derived mesh and other misc files: floats were being implicitly promoted to doubles, adjust to use floats.

8 years agoimbuf, mathutils & readfile: floats were being implicitly promoted to doubles, adjust...
Campbell Barton [Sun, 27 Mar 2011 17:12:59 +0000 (17:12 +0000)]
imbuf, mathutils & readfile: floats were being implicitly promoted to doubles, adjust to use floats.

8 years agoview3d / object drawing: floats were being implicitly promoted to doubles, adjust...
Campbell Barton [Sun, 27 Mar 2011 15:57:27 +0000 (15:57 +0000)]
view3d / object drawing: floats were being implicitly promoted to doubles, adjust to use floats.

8 years agomath lib and UV project: floats were being implicitly promoted to doubles, adjust...
Campbell Barton [Sun, 27 Mar 2011 15:54:20 +0000 (15:54 +0000)]
math lib and UV project: floats were being implicitly promoted to doubles, adjust to use floats.

8 years agoobject/paint/misc-files: floats were being implicitly promoted to doubles, adjust...
Campbell Barton [Sun, 27 Mar 2011 14:59:55 +0000 (14:59 +0000)]
object/paint/misc-files: floats were being implicitly promoted to doubles, adjust to use floats.
- also UV angle stretching was using radians->deg which wasn't needed.

8 years agointerface: floats were being implicitly promoted to doubles, adjust to use floats...
Campbell Barton [Sun, 27 Mar 2011 14:52:16 +0000 (14:52 +0000)]
interface: floats were being implicitly promoted to doubles, adjust to use floats (in most cases) otherwise cast to double.

8 years agoFix for [26631] relative blur decimal value from 2.49 is not correctly converted...
Lukas Toenne [Sun, 27 Mar 2011 13:49:56 +0000 (13:49 +0000)]
Fix for [26631] relative blur decimal value from 2.49 is not correctly converted to percentage value in 2.5
This will not work for file saved between the blur node patch and subversion 2, those will still have to be update manually.

8 years agomodifiers: floats were being implicitly promoted to doubles, adjust to use floats.
Campbell Barton [Sun, 27 Mar 2011 13:49:53 +0000 (13:49 +0000)]
modifiers: floats were being implicitly promoted to doubles, adjust to use floats.

8 years agoAdd blender light profile.
Nathan Letwory [Sun, 27 Mar 2011 09:46:20 +0000 (09:46 +0000)]
Add blender light profile.

8 years agooption not to restore the original frame when canceling the animation, use in demo...
Campbell Barton [Sun, 27 Mar 2011 08:31:10 +0000 (08:31 +0000)]
option not to restore the original frame when canceling the animation, use in demo mode.

8 years agoclear some c++ warnings.
Campbell Barton [Sun, 27 Mar 2011 07:56:29 +0000 (07:56 +0000)]
clear some c++ warnings.

8 years agofix [#26616] Line of code make Blender crash
Campbell Barton [Sun, 27 Mar 2011 06:56:37 +0000 (06:56 +0000)]
fix [#26616] Line of code make Blender crash

8 years agofix for 'View Docs' with inherited properties, eg: "Object.name", is inherited and...
Campbell Barton [Sun, 27 Mar 2011 06:15:55 +0000 (06:15 +0000)]
fix for 'View Docs' with inherited properties, eg: "Object.name", is inherited and needs to open the URL of "ID.name".

8 years agopep8 cleanup
Campbell Barton [Sun, 27 Mar 2011 05:23:14 +0000 (05:23 +0000)]
pep8 cleanup

8 years agofix (own bug) [#26628] "FCurve/Driver Version Fix" Incorrectly Clobbers Array Indexing
Campbell Barton [Sun, 27 Mar 2011 03:14:14 +0000 (03:14 +0000)]
fix (own bug) [#26628] "FCurve/Driver Version Fix" Incorrectly Clobbers Array Indexing
also escape strings properly now.

8 years agoSVN maintenance.
Guillermo S. Romero [Sat, 26 Mar 2011 23:55:54 +0000 (23:55 +0000)]
SVN maintenance.

8 years agoBugfixes due to recent RNA renaming:
Joshua Leung [Sat, 26 Mar 2011 23:42:51 +0000 (23:42 +0000)]
Bugfixes due to recent RNA renaming:

* Driver F-Curves were not getting fixed by the "FCurve/Driver Version
Fix" tool. This was causing problems such as shapekey drivers from
older (2.56 compatible rigs) failing to run. As well as renaming the
paths for these Driver F-Curves, the "disabled" flags also get cleared
from these drivers so that they can be run again

* "Revive Disabled F-Curves"  operator in Animation Editors can now be
used to revive disabled drivers too.

8 years agoOne more fix for recent normals re-calculation change
Sergey Sharybin [Sat, 26 Mar 2011 17:43:07 +0000 (17:43 +0000)]
One more fix for recent normals re-calculation change

8 years agofix for transform using the wrong RNA type
Campbell Barton [Sat, 26 Mar 2011 15:24:59 +0000 (15:24 +0000)]
fix for transform using the wrong RNA type

8 years agoFixed memory access in mesh_calc_normals(). Now it uses much less memory.
Sergey Sharybin [Sat, 26 Mar 2011 09:48:03 +0000 (09:48 +0000)]
Fixed memory access in mesh_calc_normals(). Now it uses much less memory.

8 years ago- fix for editfont using an enum func on boolean property.
Campbell Barton [Sat, 26 Mar 2011 09:36:45 +0000 (09:36 +0000)]
- fix for editfont using an enum func on boolean property.
- updated FBX export test hash.

8 years agoUpdate cmake & scons scripts to use new Collada includes for building with latest...
Damien Plisson [Sat, 26 Mar 2011 09:09:00 +0000 (09:09 +0000)]
Update cmake & scons scripts to use new Collada includes for building with latest blender collada updates

8 years agoFix for Mac addon install, unzipping could create __MACOSX folder which
Brecht Van Lommel [Sat, 26 Mar 2011 08:41:21 +0000 (08:41 +0000)]
Fix for Mac addon install, unzipping could create __MACOSX folder which
we don't need, just remove it if it gets created.

8 years agoFix #26582, #26586, #26613: recent normal calculation changes didn't take
Brecht Van Lommel [Sat, 26 Mar 2011 08:28:24 +0000 (08:28 +0000)]
Fix #26582, #26586, #26613: recent normal calculation changes didn't take
into account that some tools use normals for things other than display. Now
we properly initialize vertex normals at flat faces too.

Also fixed a normal refresh issue, and deduplicated CDDM/mesh normal
calculation code.

8 years agofix for blenderplayer crashing on exit.
Campbell Barton [Sat, 26 Mar 2011 08:13:42 +0000 (08:13 +0000)]
fix for blenderplayer crashing on exit.

the event consumer was being freed twice, once when going out of C++ scope, another when freeing the system.

8 years agoBugfix:
Joshua Leung [Sat, 26 Mar 2011 05:52:18 +0000 (05:52 +0000)]
Bugfix:

Recent renaming of Key.keys to Key.key_blocks broke converter for old
files.

Campbell Alert: However, more seriously, it has broken many current
rigs, especially those with heavy usage of (driven) Shape Keys

8 years agoprint guarded-alloc memory leaks on blenderplayer exit.
Campbell Barton [Sat, 26 Mar 2011 04:50:59 +0000 (04:50 +0000)]
print guarded-alloc memory leaks on blenderplayer exit.

8 years agooptparse module is deprecated, use new argparse module in background job template.
Campbell Barton [Sat, 26 Mar 2011 03:42:59 +0000 (03:42 +0000)]
optparse module is deprecated, use new argparse module in background job template.
correction to example in doc too.

8 years ago"Fill Deformed" option for curves isn't dependent from bevel object,
Sergey Sharybin [Fri, 25 Mar 2011 22:02:50 +0000 (22:02 +0000)]
"Fill Deformed" option for curves isn't dependent from bevel object,
so it shouldn't be grayed out even if bevel object is set.

8 years agoForgot to add to log of previous commit:
Ton Roosendaal [Fri, 25 Mar 2011 17:16:22 +0000 (17:16 +0000)]
Forgot to add to log of previous commit:

The purpose was to set a wait-cursor draw on 3d windows. I tried for
but it keeps failing... inside threads you can't do UI stuff. Needs
further thinking, probably something via jobs system.

8 years agoBugfix #26195
Ton Roosendaal [Fri, 25 Mar 2011 17:11:32 +0000 (17:11 +0000)]
Bugfix #26195

When rendering, during processing scene data, drawing in 3d window
is now locked. Can get extended to more areas in UI easily.

At least this solves all crashes with conflicting memory access in
render && 3d drawing. Deleting objects via operators or delete
modifiers isn't locked yet.

Also fixed: crash on quitting a renderwindow when it was rendering.

8 years agoMoved temporary drag operator link drawing from node tree to node space function...
Lukas Toenne [Fri, 25 Mar 2011 16:53:07 +0000 (16:53 +0000)]
Moved temporary drag operator link drawing from node tree to node space function. Otherwise these links are redrawn for each node group.
Changed selection flag used for the selected_nodes context property from SELECT to NODE_SELECT. These are just incidentally the same, but NODE_SELECT should be used for nodes.

8 years agoincorrect rna type for the BGE ui.
Campbell Barton [Fri, 25 Mar 2011 14:32:47 +0000 (14:32 +0000)]
incorrect rna type for the BGE ui.

8 years agouse size_t rather then int for passing lengths to string functions since this is...
Campbell Barton [Fri, 25 Mar 2011 13:40:44 +0000 (13:40 +0000)]
use size_t rather then int for passing lengths to string functions since this is what guarded-malloc uses as well as stdlib.h.

8 years agofix [#26600] TexturedSolid + Curve: Specular affecting other materials
Campbell Barton [Fri, 25 Mar 2011 13:37:50 +0000 (13:37 +0000)]
fix [#26600] TexturedSolid + Curve: Specular affecting other materials

8 years agoinclude gcc builtin defines in qtcreator project file (__VERSION__, __x86_64__, __lin...
Campbell Barton [Fri, 25 Mar 2011 12:42:33 +0000 (12:42 +0000)]
include gcc builtin defines in qtcreator project file (__VERSION__, __x86_64__, __linux__ etc)

8 years agoFix for [#25932] Video Sequencer: F-curve insertion failure after un-meta
Janne Karhu [Fri, 25 Mar 2011 11:45:55 +0000 (11:45 +0000)]
Fix for [#25932] Video Sequencer: F-curve insertion failure after un-meta
* Copying/pasting sequence strips didn't properly check for unique names between the copied/pasted strips, so the rna paths of copypasted strips couldn't always be checked properly.

8 years agoAdd ExtraTags class for handling tags inside an extra block.
Nathan Letwory [Fri, 25 Mar 2011 11:07:57 +0000 (11:07 +0000)]
Add ExtraTags class for handling tags inside an extra block.

8 years agofix [#26610] Pressing the ENTER key while editing a Text Object crashes Blender.
Campbell Barton [Fri, 25 Mar 2011 10:41:53 +0000 (10:41 +0000)]
fix [#26610] Pressing the ENTER key while editing a Text Object crashes Blender.

8 years agoMostly formatting commit, small elaboration in extra handling API (take pointer to...
Nathan Letwory [Fri, 25 Mar 2011 09:52:36 +0000 (09:52 +0000)]
Mostly formatting commit, small elaboration in extra handling API (take pointer to importer).

8 years agoSwitched the fluid fix from yesterday into using the existing compatible eulers funct...
Janne Karhu [Fri, 25 Mar 2011 08:47:41 +0000 (08:47 +0000)]
Switched the fluid fix from yesterday into using the existing compatible eulers function rather than a custom function. Thanks for the tip Campbell!

8 years agomove object re-linking into a function.
Campbell Barton [Fri, 25 Mar 2011 08:43:41 +0000 (08:43 +0000)]
move object re-linking into a function.

8 years agofix [#26607] blender won't duplicate or assign new drivers on duplication
Campbell Barton [Fri, 25 Mar 2011 07:34:44 +0000 (07:34 +0000)]
fix [#26607] blender won't duplicate or assign new drivers on duplication

8 years agodont return a system path if cmake's 'WITH_INSTALL_PORTABLE' is enabled. this way...
Campbell Barton [Fri, 25 Mar 2011 05:23:58 +0000 (05:23 +0000)]
dont return a system path if cmake's 'WITH_INSTALL_PORTABLE' is enabled. this way portable builds wont find scripts in /usr/share.

8 years agoadd cmake option to build without xinput (tablet support)
Campbell Barton [Fri, 25 Mar 2011 04:56:48 +0000 (04:56 +0000)]
add cmake option to build without xinput (tablet support)

8 years agoSpaceImage.curves --> curve for consistency.
Campbell Barton [Fri, 25 Mar 2011 04:37:59 +0000 (04:37 +0000)]
SpaceImage.curves --> curve for consistency.

8 years agonew function RNA_warning(), replaces printf with function which may be called via...
Campbell Barton [Fri, 25 Mar 2011 04:36:10 +0000 (04:36 +0000)]
new function RNA_warning(), replaces printf with function which may be called via python.

Now this gives the line number of the scripts thats running, eg:

uiItemFullO: unknown operator 'some.operator'
/c/bin/2.56/scripts/startup/bl_ui/space_view3d_toolbar.py:73

8 years agoGraph Editor: Euler Filter ported from Py to C
Joshua Leung [Fri, 25 Mar 2011 03:58:21 +0000 (03:58 +0000)]
Graph Editor: Euler Filter ported from Py to C

Ported joeedh's Euler Filter code from Python to C so that this is
more in line with the other Graph Editor tools - i.e. joeedh's version
only worked on the active bone's curves, while standard tools could
work with multiple bones/objects at the same time.

To use this new version of this operator:
1) Select all the F-Curves for all 3 of the components (XYZ) for the
euler rotations you wish to clean up. In the Graph Editor, they must
be one after the other (i.e. you can't have "RotX, RotY, something
else, RotZ")
2) Activate the operator from the Key menu in the Graph Editor

In an old test file I have floating around, this method did not appear
to be good enough to fix a very clear discontinuity in the middle of
the action, so I'll test some additional methods too

8 years agofix [#26601] Python error when use of autocomplete
Campbell Barton [Fri, 25 Mar 2011 02:12:44 +0000 (02:12 +0000)]
fix [#26601] Python error when use of autocomplete
Was a naming collision with 'keys' python method, reserve keys/items/values/get for python.
Updated animsys_update.py for shapekey data paths.

renamed:
  Particle.hair --> hair_keys
  Particle.keys --> particle_keys
  Key.keys --> key_blocks
  EnumProperty.items --> enum_items
  KeyMap.items --> keymap_items

noted:
  http://wiki.blender.org/index.php/Dev:2.5/Py/API/Updates#Since_2.56a

8 years agofix for incorrect prints with RNA errors (own fault, CONTAINER_RNA_ID was incorrect...
Campbell Barton [Fri, 25 Mar 2011 01:55:00 +0000 (01:55 +0000)]
fix for incorrect prints with RNA errors (own fault, CONTAINER_RNA_ID was incorrect) & close keymap file after running.

8 years agofix for blenderplayer using un-initialized mathutils types.
Campbell Barton [Fri, 25 Mar 2011 00:34:28 +0000 (00:34 +0000)]
fix for blenderplayer using un-initialized mathutils types.

8 years agoBGE player was using un-initialized variables for initializing the canvas color.
Campbell Barton [Fri, 25 Mar 2011 00:23:02 +0000 (00:23 +0000)]
BGE player was using un-initialized variables for initializing the canvas color.

8 years agoBugfix:
Joshua Leung [Thu, 24 Mar 2011 23:34:43 +0000 (23:34 +0000)]
Bugfix:
[#25725] Transform bone constraint & 'local with parent' as owners
space
[#26014] ChildOf Bone Constrain (influence) works in wrong workspace

Moved the influence calculation stuff outside of the space conversions
(i.e. so that it is done in worldspace only) fixes these problems,
which seem to arise when a constraint doesn't work in worldspace AND
doesn't need to apply inverse correct for this space conversion when
it's done, hence resulting in mismatch between spaces for old and new
matrices resulting in all the weird behaviour.

Patch to fix this from Jahka. Cheers!

8 years agoLogic Editor UI: sensor frequency active only when one of the triggers is on. Removin...
Dalai Felinto [Thu, 24 Mar 2011 21:07:54 +0000 (21:07 +0000)]
Logic Editor UI: sensor frequency active only when one of the triggers is on. Removing text "Action" from Action and Shape Action Actuators.
I still would love to see a change in the action actuators (Action, Shape and FCurve) even if only a rename or unifying them in a single actuator (I do have some patch for that). Anyways

8 years agoBugfix 26578
Ton Roosendaal [Thu, 24 Mar 2011 18:39:54 +0000 (18:39 +0000)]
Bugfix 26578

"Warp" texture map option didnt work for new bump methods yet.
Also fixed to not grey out bump menu for this mapping option.

8 years agoUI clarification: "local coordinates" option for fluid inflow objects doesn't have...
Janne Karhu [Thu, 24 Mar 2011 17:17:44 +0000 (17:17 +0000)]
UI clarification: "local coordinates" option for fluid inflow objects doesn't have any effect when "export animated mesh" is selected
* Grayed out the "local coordinates" option in this case to avoid confusion.

8 years agoFurther fix for parented fluidsim objects
Janne Karhu [Thu, 24 Mar 2011 17:15:43 +0000 (17:15 +0000)]
Further fix for parented fluidsim objects
* The rotation values determined from ob->obmat have to be continuous as fluidsim interpolates between these values internally.

8 years agoBugfix #26584
Ton Roosendaal [Thu, 24 Mar 2011 14:31:58 +0000 (14:31 +0000)]
Bugfix #26584

- Colormanagement code was gamma correcting non-RGBA buffers in composite.
  (Like vector buffers).
- Crash on using "use Color Management" button during composites, because
  it was freeing all node images. Added code to stop first jobs before
  freeing. It sends notifier for recomposites after free anyway.

8 years agoBug fix: Fluidsim didn't take parent objects into account when calculating the inflow...
Janne Karhu [Thu, 24 Mar 2011 14:19:12 +0000 (14:19 +0000)]
Bug fix: Fluidsim didn't take parent objects into account when calculating the inflow velocity in local coordinates.
* The object rotation was based on ob->rot (which only includes object's own rotation) instead of ob->obmat, which includes parent rotations as well.

8 years agofix for using uiItemIntO for an enum, added uiItemEnumO_value function.
Campbell Barton [Thu, 24 Mar 2011 12:36:12 +0000 (12:36 +0000)]
fix for using uiItemIntO for an enum, added uiItemEnumO_value function.

8 years agofix [#26598] zoom view and scaling odd vertices circle
Campbell Barton [Thu, 24 Mar 2011 12:17:24 +0000 (12:17 +0000)]
fix [#26598] zoom view and scaling odd vertices circle

8 years agoParticle charge effector wasn't working properly.
Janne Karhu [Thu, 24 Mar 2011 12:12:54 +0000 (12:12 +0000)]
Particle charge effector wasn't working properly.
* Probably just forgot this code somewhere a long time ago.

8 years agofix [#26545] Crash when changing values for properties after changing max-min
Campbell Barton [Thu, 24 Mar 2011 11:38:20 +0000 (11:38 +0000)]
fix [#26545] Crash when changing values for properties after changing max-min

tried doing this smarter by validating the property exists in UI code before access but this ended up making it too complicated and also hard to account for possible access without checking every time.

for now just redraw all areas when a user property is changed.

8 years agowrite project files into the build dir.
Campbell Barton [Thu, 24 Mar 2011 10:54:42 +0000 (10:54 +0000)]
write project files into the build dir.

8 years agofix for incorrect array use when freeing fcurve modifier envelope points, array also...
Campbell Barton [Thu, 24 Mar 2011 09:59:02 +0000 (09:59 +0000)]
fix for incorrect array use when freeing fcurve modifier envelope points, array also wasnt NULL'd on freeing which gave memory errors later on.

8 years agoZanQdo Bugfix:
Joshua Leung [Thu, 24 Mar 2011 09:53:39 +0000 (09:53 +0000)]
ZanQdo Bugfix:

Envelope FModifier data points were getting saved in a non-portable
way. Apparently this broke when trying to read files with this data on
PPC machines if the files were saved using Intel machines.

8 years agoRNA & interface functions for checking if RNA in a button uses valid rna property...
Campbell Barton [Thu, 24 Mar 2011 09:27:41 +0000 (09:27 +0000)]
RNA & interface functions for checking if RNA in a button uses valid rna property (not currently used).

8 years agothe script is now creating 2 project files:
M.G. Kishalmi [Thu, 24 Mar 2011 08:33:42 +0000 (08:33 +0000)]
the script is now creating 2 project files:

Blender.creator
Blender_Python.creator

.glsl files have been added to the former
latter contains everything .py

8 years agotag variable as unused.
Campbell Barton [Thu, 24 Mar 2011 03:28:18 +0000 (03:28 +0000)]
tag variable as unused.

8 years agoPose Menu Tweak: Moved keyframe management items into sub-menu like in
Joshua Leung [Thu, 24 Mar 2011 03:23:30 +0000 (03:23 +0000)]
Pose Menu Tweak: Moved keyframe management items into sub-menu like in
Object menu

8 years agoReshuffled utility function to keyframe drawing API, removing some
Joshua Leung [Thu, 24 Mar 2011 03:19:30 +0000 (03:19 +0000)]
Reshuffled utility function to keyframe drawing API, removing some
duplicate code

8 years agoAnimation Tool: Propagate Pose
Joshua Leung [Thu, 24 Mar 2011 03:02:34 +0000 (03:02 +0000)]
Animation Tool: Propagate Pose

This tool automates the process of copying a pose to successive
keyframes, making it easier for animators to go back and change the
pose for some controls which remain "static" for periods of time.
Previously, animators would need to do a "{Ctrl-Pageup Ctrl-V} *
number_of_static_keyframes" dance for each set of controls that this
happened on, which is not too good ergonomically speaking.

There are two modes exposed via the menu (Pose->Propagate):
- "Pose Propagate" - also known as the 'WHILE_HELD' mode, which
propagates to all keyframes that are holding the same value
- "To Next Keyframe" - which only propagates the pose to the closest
keyframe in the occurring after (but not including) the current frame

Additionally, there are a few other modes that can be used, though
they are less useful for direct use from the UI, though they can be
used via the PyAPI as need be.

---

Also, I did some cleanups in the "Pose" menu to bring it more into
line with the Object mode one. There are some more tweaks that could
still be done here, such as bringing the keyframing operator entries
under a submenu too (as in the Object mode version) to get the length
of this under control.

8 years agosupport for blender as a module on win32.
Campbell Barton [Thu, 24 Mar 2011 00:14:49 +0000 (00:14 +0000)]
support for blender as a module on win32.

8 years agoFix #26571: slow approximate AO with zero area faces.
Brecht Van Lommel [Wed, 23 Mar 2011 23:07:09 +0000 (23:07 +0000)]
Fix #26571: slow approximate AO with zero area faces.

8 years agofix [#26591] File browser: select multiple files for Library append/link broken
Andrea Weikert [Wed, 23 Mar 2011 18:51:31 +0000 (18:51 +0000)]
fix [#26591] File browser: select multiple files for Library append/link broken
* added check for valid files a bit too eagerly in Rev.35654. Solved now by
  setting correct type for .blend file contents. Objects are now tagged as
  regular files, while the list (Mesh, Material, ...) (no idcode given) is
  tagged as directory.

8 years agoIRC bugreport:
Ton Roosendaal [Wed, 23 Mar 2011 16:36:41 +0000 (16:36 +0000)]
IRC bugreport:

Splitting/joining editors (areas) was possible in full-screen mode.
That's not possible, crashes on going back to previous.

8 years agofix [#26456] weightpaint mode with armature modifier, armature mode
Campbell Barton [Wed, 23 Mar 2011 16:05:35 +0000 (16:05 +0000)]
fix [#26456] weightpaint mode with armature modifier, armature mode
disable bone selection in weightpaint mode when the armature is not in pose mode.

8 years agoAdditonal fix for r35724
Ton Roosendaal [Wed, 23 Mar 2011 15:15:42 +0000 (15:15 +0000)]
Additonal fix for r35724

(bugfix #26573, #26574 and #26551)

Layer visibility code for hotkeys uses different code still, added same
new DAG_on_visible_update() in this operator.

8 years agomissed committing this before
Campbell Barton [Wed, 23 Mar 2011 15:14:21 +0000 (15:14 +0000)]
missed committing this before

8 years agofix for building collada on linux
Campbell Barton [Wed, 23 Mar 2011 15:07:30 +0000 (15:07 +0000)]
fix for building collada on linux

8 years agoCOLLADA: supporting barebone class for <extra> support (incomplete).
Nathan Letwory [Wed, 23 Mar 2011 14:25:35 +0000 (14:25 +0000)]
COLLADA: supporting barebone class for <extra> support (incomplete).

8 years agofix [#26588] In render view, Blender crashes when collapsing an opened split render...
Campbell Barton [Wed, 23 Mar 2011 14:24:13 +0000 (14:24 +0000)]
fix [#26588] In render view, Blender crashes when collapsing an opened split render pane if you have the histogram tab open in the pane your collapsing.

8 years agoFix #26573, #26574 and #26551: objects on layers not visible on load or undo
Brecht Van Lommel [Wed, 23 Mar 2011 14:06:44 +0000 (14:06 +0000)]
Fix #26573, #26574 and #26551: objects on layers not visible on load or undo
restore, would not get their dependencies updated when they became visible.
It happend with a shrinkwrap modifier in these reports, but could happen with
other modifiers too.

Now we keep track of which layers have ever been updated since load, and tag
objects on them to be recalculated when they become visible.

8 years agotweaks not to load webbrowser or math modules on startup.
Campbell Barton [Wed, 23 Mar 2011 13:04:35 +0000 (13:04 +0000)]
tweaks not to load webbrowser or math modules on startup.

8 years agoallow unregistered rna classes to have rna properties assigned before registration.
Campbell Barton [Wed, 23 Mar 2011 12:44:22 +0000 (12:44 +0000)]
allow unregistered rna classes to have rna properties assigned before registration.
this is useful for the register() class method which is called before the class gets structRNA assigned.

eg:

class MyClass(bpy.types.PropertyGroup):
    @classmethod
    def register(cls):
        cls.name = StringProperty()  # assigned but registration is delayed.

8 years agoFix for 1. in [#26212] ParticleSystem.particles issues
Janne Karhu [Wed, 23 Mar 2011 10:57:45 +0000 (10:57 +0000)]
Fix for 1. in [#26212] ParticleSystem.particles issues
* Exposed dynamic hair data in rna to allow exporting hair dynamics.

8 years agoFix wrong CINE_SCOPE_24FPS RNA enum identifier.
Brecht Van Lommel [Wed, 23 Mar 2011 10:33:06 +0000 (10:33 +0000)]
Fix wrong CINE_SCOPE_24FPS RNA enum identifier.

8 years agoBugfix:
Joshua Leung [Wed, 23 Mar 2011 09:22:28 +0000 (09:22 +0000)]
Bugfix:

NLA Header was broken by recent Py UI-script changes

8 years agoAdding header for offsetof()
Nathan Letwory [Wed, 23 Mar 2011 09:18:09 +0000 (09:18 +0000)]
Adding header for offsetof()