Commit Graph

19466 Commits

Author SHA1 Message Date
Campbell Barton
4cd088c19e modal python operator support. 2010-02-21 11:56:00 +00:00
Joshua Leung
ddc0c68a5c Bugfix #21234: Autokey "insert only available" userpref inserts keys for all bones in an armature
-- 

Bugfix: When autokey is enabled, notifiers to refresh the animation editors *after* transforms finished for objects were missing.
While I understand the need to limit these to not doing this during transform, after transform, this lead to lag/inconsistent UI problems.

-- 

* Added 'Damped Track' Option to 'Make Track' Operator
* Improved the code of the 'Clear Track' operator to include other types of tracking constraint too
2010-02-21 11:42:32 +00:00
Campbell Barton
02b2c2f39d bugfix [#21258] Select > Mirror causes segmentation fault. 2010-02-21 11:07:06 +00:00
Joshua Leung
f3b9ea066e Bugfix #21245: "Track to" (Ctrl + T) operator was missing notifier updates
Bugfix #21255: Clear track operator did not remove TrackTo constraints too. This could still be made to do Locked Track and other tracking constraints later too, but for now this will do.
2010-02-21 11:05:52 +00:00
Daniel Salazar
273af05c80 Emmit step size was too high 2010-02-21 08:25:14 +00:00
Martin Poirier
71125002a9 No need for this change anymore (force include to get BLO_sys_types.h in GE) 2010-02-20 22:51:22 +00:00
Martin Poirier
5589050c7e move include where it's needed and won't break other things. 2010-02-20 22:49:45 +00:00
Elia Sarti
f7d82af101 Compile fix for CMake 2010-02-20 22:38:21 +00:00
Campbell Barton
86047ac3d5 typo in to_euler() 2010-02-20 22:36:32 +00:00
Joshua Leung
24827ce351 Fix compiling error on windows for mathutils commit 2010-02-20 21:01:05 +00:00
Campbell Barton
ac48efc0ab allow removing datablocks in the rare case of <0 users. 2010-02-20 20:59:30 +00:00
Martin Poirier
aa67aa9ecc Split numinput from transform (reusable in other operator).
Use in marker move operator.
2010-02-20 20:29:09 +00:00
Campbell Barton
02e7871149 Mathutils API: Euler support for rotation order.
Examples.
 euler = Euler(1, 2, 3)
 euler.order = 'ZXY'
 
 euler = matrix.to_euler('XZY')


Still missing rna support. this still wont give the right order, defaulting to XYZ.
 eul = object.rotation_euler
2010-02-20 19:49:04 +00:00
Campbell Barton
65a4dafcff fix for empty xyz axis text drawing ontop of everything. 2010-02-19 20:09:42 +00:00
Campbell Barton
96b58264ca faster function lookups, quick test through python cuts a quater the time off.
was doing an extra lookup for the functions property, as well as using the property iterator.
(every button & menu item draws does one of these for every redraw).
2010-02-19 16:31:03 +00:00
Campbell Barton
3bf2715039 apply visual transform to pose
So constrainted bones can have their transform applied to their loc/scale/rot, then remove the constraints
2010-02-19 15:34:26 +00:00
Campbell Barton
3b9fdfa9e1 dont allow linking an object into a linked scene. 2010-02-19 14:08:41 +00:00
Campbell Barton
4755ab9f80 scene_update_for_newframe was calling DAG_scene_update_flags() and BKE_animsys_evaluate_all_animation() for each set.
gain some speedup by only calling once.

minor printf changes to readfile.c, no functional change.
2010-02-19 13:13:21 +00:00
Joerg Mueller
f09dc08523 Enabling AV-sync again. You can now choose between No sync, Frame Dropping or AV-sync. 2010-02-19 12:20:29 +00:00
Joshua Leung
92927e5f7d Pose Tools Cleanup:
Moved some of the generic code used to determine the F-Curves linked to PoseChannel transforms (as used by the Pose Sliding tools) into a separate file, in preparation for migration of PoseLib tools to this system too. This should make it easier to add some useful new functionality to the PoseLib browsing system (pending in a later commit).
2010-02-19 11:42:21 +00:00
Campbell Barton
f50962a689 in rare cases fcurves with no handle length can result in 0.0. check if the point matches the frame. 2010-02-18 19:43:13 +00:00
Campbell Barton
b5adeb922f revert 27010, sorry but this makes playback of animation unusable & jerky, we can provide some sample files for testing. 2010-02-18 17:00:24 +00:00
Campbell Barton
3142c4367c another speedup to constraint checking, skip the bone list and only lookup pose channels that have constraints. 2010-02-18 16:41:47 +00:00
Campbell Barton
f4b3d2dc9c constraints were being checked twice (once from rna property update function and once from the constraint panel callback)
comment the update call in the panel function.
also avoid one bone lookup which was taking a fair bit of CPU when profiling.
2010-02-18 16:05:01 +00:00
Joerg Mueller
007374170b Calling AV-sync in UI to what it really is! 2010-02-18 14:37:17 +00:00
Joerg Mueller
37d781b868 Basic AV Sync for forward playing. 2010-02-18 14:17:53 +00:00
Campbell Barton
8a3be98403 applying rest pose on a linked proxy would crash because object_data_is_libdata assumed proxy didnt have linked data. 2010-02-18 11:49:17 +00:00
Campbell Barton
42fd22531f constraints unique name length was set too long (could overrun the buffer), use sizeof() with other instances of BLI_uniquename too 2010-02-18 10:14:49 +00:00
Campbell Barton
cff0110d08 experemental code got mixed up in a patch. removing. 2010-02-18 09:32:24 +00:00
Mitchell Stokes
d4bddd84e5 Update to stubs.c to get the blenderplayer linking again. 2010-02-18 08:34:12 +00:00
Tom Musgrove
0551986ff1 missed a file in previous crosscompiling related commits 2010-02-18 06:53:10 +00:00
Joshua Leung
21a2350248 Animation Playback Option (No negative frames) and Other Bugfixes:
* Added a user-preference setting which disallows setting the current frame number to a negative number. This setting only applies when setting the current frame by scrubbing the time cursor in a timeline view, or by typing a value into the current frame number field.

* Made the minimum frame number for the start frame to be 0, which should make setting keyframes by a regular step size less confusing. Also changed the MINFRAME define to 0 for consistency. Hopefully this doesn't cause any problems with any output formats. 

* Fixed some missing channel selection cases in animation editors.
2010-02-18 00:29:08 +00:00
Jens Ole Wund
65cac9ae13 fix for MS compliers
keep var declaration up in .c files
2010-02-17 23:04:30 +00:00
Campbell Barton
04035b81b7 [#21207] bpy.ops.object.vertex_group_sort() sorts group names, but not group data
support for vertex group sorting in editmode
2010-02-17 22:26:50 +00:00
Campbell Barton
0dc8026691 mostly fixed [#21172] Reloading scripts leaks memory (F8)
the same properties were being registered many times with built in structs.

blender memory at least is not leaking, but it seems python is still not freeing some memory.

For the moment dont allow existing properties to be registered again, will need to have a way to unregister rna properties.
2010-02-17 21:58:08 +00:00
Campbell Barton
c72ab0a39e topology based mirror, (from apricot branch)
- correct errors with non-mirrored meshes
- mirror weight paint on asymmetrical meshes
2010-02-17 19:50:42 +00:00
Lukas Steiblys
1a6f683b43 another attempt at fixing the VBO buffer deletion bugs 2010-02-17 18:48:02 +00:00
Campbell Barton
3c2d59e032 py/rna api property api functions crashed with empty args.
eg: bpy.props.BoolProperty()
2010-02-17 17:22:39 +00:00
Elia Sarti
a4ed376d3e Object's RNA cleanups, made descriptions clearer, mostly aesthetic changes. Anyone who finds these incorrect feel free to change or make me notice. 2010-02-17 16:18:41 +00:00
Campbell Barton
79b7234c5e rename rna props for auto-keying to be consistant, user prefs were graying out auto key options that were still in use. 2010-02-17 15:14:09 +00:00
Campbell Barton
f5c9574e68 remove duplicate function. 2010-02-17 14:09:16 +00:00
Campbell Barton
712e8c6a5c fix for negative frames messing up image sequence name. 2010-02-17 13:43:50 +00:00
Campbell Barton
b9da824821 [#21197] change layer of just linked in objects lets them vanish
missing undo push in file selector.
2010-02-17 12:21:38 +00:00
Joshua Leung
7790780006 Animation Editors: DopeSheet filter for Object-level animation
Added a new option to filter the out Object-level (i.e. transforms, object visibility/settings, and also bone animation) animation data from the channels list. As most of these settings are transforms, I've used the transform manipulator icon and named the RNA setting display_transforms. 

This is useful when trying to filter out only material animation data for example, as requested by Colin.
2010-02-17 12:03:23 +00:00
Brecht Van Lommel
2eeef0ba7b Remove some unfinished code I accidentally commit for render thread safety. 2010-02-17 11:35:20 +00:00
Joshua Leung
30d01cf240 Cleanup tweaks:
1) Decreased the alpha value for unselected F-Curves in the Graph Editor, making them more invisible to help make the selected ones stand out more.

2) Removed various outdated settings from pose bone RNA
2010-02-17 10:23:14 +00:00
Joshua Leung
a6e1998222 Animation Editors - Texture Animation:
Texture animation is now shown in the animation editors. Texture stacks are shown for each Material/Lamp/World block that uses them.

There is currently still a bit of a bug with this which means that unless the owner of the texture stack is animated too, the animation data for the textures won't show up. This will get rectified soon though.
2010-02-17 10:21:07 +00:00
Joshua Leung
f075308d20 Fill bones between joints (FKEY) was missing a suitable notifier. 2010-02-16 23:51:49 +00:00
Campbell Barton
df4d7b041e fix for make proxy, was checking dupligroup when it wasnt needed. 2010-02-16 19:41:44 +00:00
Campbell Barton
0b3dfc441e pyrna, adding back foreach functions from collections. they are needed! 2010-02-16 19:27:38 +00:00