Arystanbek Dyussenov
b36c4f3987
Merging change 24311 from COLLADA branch into trunk which should fix object-based rotation import/export. Bone rotation animation not fixed yet.
2009-11-04 15:25:57 +00:00
Campbell Barton
3ac98f1abd
python function for adding a driver. eg
...
ob.driver_add("location")
ob.driver_add("location", 0) # x location only
Also changed ANIM_add_driver so an index of -1 adds drivers to every item in the array
2009-11-04 15:16:41 +00:00
Campbell Barton
4033aba579
new operator directory, move some scripts from io
2009-11-04 14:40:35 +00:00
Campbell Barton
69aaa43c24
quick update of bvh importer for blender 2.5, mostly this is to test the python api.
...
- bvh joint rotations are not working quite right yet
2009-11-04 14:33:37 +00:00
Campbell Barton
37fde5b335
bvh import from 2.4x (unchanged)
2009-11-04 14:31:14 +00:00
Campbell Barton
8436608513
Bridge edge loops would loose all edge flags.
...
Would happen in any case where python added new mesh data into an existing mesh.
fix by copying the old edges into the new array
2009-11-04 14:28:43 +00:00
Campbell Barton
42fb30f37a
change to insert_keyframe() so an array index of -1 keys all arrays indices
...
made this default for python so you can do...
pose_bone.keyframe_insert("location")
rather then
pose_bone.keyframe_insert("location", 0)
pose_bone.keyframe_insert("location", 1)
pose_bone.keyframe_insert("location", 2)
2009-11-04 14:06:10 +00:00
Campbell Barton
510aa6ba53
particle vertex group UI
...
Changed RNA vgroup access to use strings (string functions adjust the ints used internally)
2009-11-04 12:09:02 +00:00
Joshua Leung
20c424730e
Spline IK: Rolling Control
...
Recoded the way that Spline-IK computes the x+z axes of the bones so that flipping artifacts are minimised, and the rotation of individual bones can be used to affect the results of the solution, as per requests from Cessen.
The bone matrices are now computed normally, and then made to conform to the orientation + scaling imposed by the splines, using the Damped-Track method. Previously, the axes of the bones were calculated without regarding the prior orientation of other bones in the chain, which lead to "z-twists".
Notes for further investigation:
- There appears to be some shearing that gets introduced now. Unforunately, I can't seem to isolate the cause of this, but I hope it's not going to become too much of a problem in general.
- Maybe inverse corrections for rotation will now be necessary when using transform tools?
2009-11-04 11:30:48 +00:00
Campbell Barton
46c8bfe151
Make Links (Ctrl+L) back
...
- split into 2 operators: object.make_links_data() & object.make_links_scene since they are quite different.
- added reusable functions RNA_group_itemf & RNA_scene_itemf which can be used for any operator that takes ID data (easy to add more types Mesh, Text etc)
- DummyRNA_NULL_items for dynamic items so each operator need not define its own empty enum.
2009-11-04 10:25:57 +00:00
Joshua Leung
b221e57fd2
Second try at fixing this... the props were still not getting initialised in many cases, but this time because those were using the exec() callbacks which didn't set this. This fix ain't that nice, but at least the old functionality works again like 2.4x.
2009-11-04 09:55:24 +00:00
Joshua Leung
de7da7c779
Bugfixes for Adding Objects:
...
* Auto enter EditMode for adding Armatures was broken
* Adding a camera no longer tries to enter editmode, even though that's invalid...
2009-11-04 09:45:37 +00:00
Brecht Van Lommel
7fad20eff8
Fix #19533 : Autoupdate check box not working for UV/Image Editor.
2009-11-04 09:22:16 +00:00
Brecht Van Lommel
ae37d92dbf
Fix #19742 : shape key crashes for curve & lattice.
2009-11-04 09:20:31 +00:00
Brecht Van Lommel
834e8aa868
Fix bug #19749 : browsing path in user preferences would crash.
2009-11-04 08:59:01 +00:00
Brecht Van Lommel
e9ce90c238
Fix bug #19699 : point density texture doesn't save particle system.
...
Non-ID pointers in DNA can only point to data from own ID block, so
now instead it uses an index into the particle system list, but still
exposed as a pointer through RNA.
2009-11-04 08:44:42 +00:00
Joshua Leung
3c6b721fc9
Bugfix #19777 : Owner Space not Target Space for Action Constraint was getting exposed via the UI.
...
The former is useless and probably dangerous to enable here, while only the latter is useful for anything.
2009-11-04 05:45:57 +00:00
Matt Ebb
a799b6ee06
Fix for [ #19745 ] displacement modifier is messing up texture coordinates when using an object for texture coordinates
...
Modifier was resetting object's imat to worldspace during render process, where it is assumed to be in camera space.
2009-11-04 05:31:42 +00:00
Matt Ebb
7699dcaab8
Fix for [ #19460 ] (+) widgets to expand UI elements overlap other windows
2009-11-04 04:13:30 +00:00
Matt Ebb
183e698af8
Fix for [ #19752 ] I cant get the particles to render as an object
2009-11-04 03:01:39 +00:00
Jens Ole Wund
2a8ef208b2
Soft bodies care for real time
2009-11-04 00:21:25 +00:00
Matt Ebb
c8ee492e7a
Changed hand-generated RNA paths to quote strings used as collection indexes.
...
Previous method worked fine for Blender animation system, but this is more convenient for Python.
2009-11-03 22:07:15 +00:00
Campbell Barton
2db1851c26
uv smart project now in unwrap menu with 2 most important options
2009-11-03 18:56:42 +00:00
Campbell Barton
65f92c893e
- remove UV mapping operator, call a header menu directly (so python can add items there)
...
- forgot to move bpy_sys.py last commit
2009-11-03 18:20:03 +00:00
Campbell Barton
6680dcd24a
renamed bpy.sys to bpy.utils, since it used to be a attempt to replace pythons sys which is bundled now
2009-11-03 18:08:25 +00:00
Campbell Barton
e4f90d9379
quick port of smart project to 2.5x, no operator options yet
2009-11-03 17:51:22 +00:00
Campbell Barton
89c2b9a77e
script copied from 2.4x with no changes
2009-11-03 17:47:44 +00:00
Martin Poirier
11c36d0ea5
Patch [ #19799 ] Add trackball loop to rotate manipulator
...
by Adrian Winchell (slightly modified)
This adds a center circle (like translation and resize) to the rotation manipulator that triggers trackball rotation.
2009-11-03 17:44:12 +00:00
Campbell Barton
2a61c7fd89
error in last commit (wasnt writing NULL when no active property exists)
...
added id.tag so you can tag any library data - materials, meshes etc
2009-11-03 17:00:38 +00:00
Campbell Barton
b8b89d5ae4
active property for collections for things like scene.objects.active
...
will add more properties later
2009-11-03 16:07:29 +00:00
Campbell Barton
b3c8935b06
- Shift+F1 is append in 2.4x (not link). Lee asked it to be made the same.
...
- use OBJECT_OT_mode_set rather then OBJECT_OT_*_toggle, better for using report output for script input. OBJECT_OT_posemode_toggle and OBJECT_OT_editmode_toggle are called by OBJECT_OT_mode_set.
2009-11-03 11:00:10 +00:00
Damien Plisson
f18c7161c4
Mac :
...
- add optimize flags setting in CMake for release builds
2009-11-03 09:56:18 +00:00
Matt Ebb
8a57ff7afa
Slightly nicer OS X quit message
2009-11-03 07:24:22 +00:00
Campbell Barton
cbc5a78576
whitespace commit, (was some tabs mixed with spaces too)
2009-11-03 07:23:02 +00:00
Matt Ebb
8cbad63c22
Fix [ #19759 ] Point Density Texture
...
Use derivedmesh functions to get object vertices, rather than objectren verts (which can not exist if object is non-renderable)
2009-11-03 06:04:42 +00:00
Matt Ebb
918d07dd5d
* Fix for bug [ #19726 ] Cannot add FCurve to any option under the physics panel except cloth
...
I had to add some ugly RNA path finding code here, checking for all places these structs can possibly be reused. Can't think of a better way to go about this though with the path stored in the RNA type...?
2009-11-03 02:49:36 +00:00
Nathan Letwory
46487ad59e
== COLLADA ==
...
* fix win64 build and add proper library usage for COLLADA 64bit. Update also lib/win64 (r24263).
2009-11-02 23:55:04 +00:00
Jens Ole Wund
5ff7cbd2f9
fixing minor issues
...
such as ignoring forward timing rule
2009-11-02 23:42:08 +00:00
Damien Plisson
5c538fc832
Mac :
...
- remove CMake warnings when building with openMP
2009-11-02 20:40:47 +00:00
Campbell Barton
acc09693c4
update from Keith Boshoff, use selected faces while in face-mask mode as well as some other cleanup
2009-11-02 20:18:05 +00:00
Martin Poirier
eafd94e1bd
Make transform axis constraint projection more robust (less flip).
...
It will still flip, but it now has a small buffer region before it does that which returns a really large positive or negative value. This still only happens in perspective cases, when moving along an axis that is nearly aligned with the view.
2009-11-02 19:37:18 +00:00
Campbell Barton
6bfcd5a811
how embarrassing!
2009-11-02 17:25:15 +00:00
Campbell Barton
072a39004e
- "selected_pchans" is now at screen level context (not just view3d) so can use for adding bones to a group.
...
- separate assign to Y key rather then Ctrl+4
2009-11-02 17:24:06 +00:00
William Reynish
67fd40f54c
Enabled theme editing in user preferences. There's still no way to Load/Save/Add/Delete though.
...
Code could be optimized greatly, but found it hard to get it to work nicely with auto-generated code.
2009-11-02 17:18:17 +00:00
Campbell Barton
54d7ca9e3b
armatures didnt allocate enough memort for make_trans_verts
...
result in blender crash when pressing numpad del.
2009-11-02 17:15:14 +00:00
Campbell Barton
bd88c3e944
moving nodes would crash because it ran object update functions
2009-11-02 16:55:06 +00:00
Campbell Barton
8557f617f0
Pose bone menu (Ctrl+G) wasnt working, replace with a reference to python menu.
2009-11-02 16:39:45 +00:00
Campbell Barton
1d9f90ed42
- all add object operators now take view_align as an argument, and enter_editmode where its used. Makes running the operator from python pradictable without having to know the user prefs.
...
- missing return in function
- python error in view3d (assumed active object exists)
2009-11-02 16:07:49 +00:00
Damien Plisson
9ea97203ae
Mac :
...
- Updated CMake files for building with openCollada
Update of the 10.5 libs including openCollada is coming in next commit
2009-11-02 14:03:13 +00:00
William Reynish
9e9ab1a227
*Added subdivide to armature toolbar, and gave it a hotkey (W)
...
*Fixed some remaining icon issue in the shape key properties
2009-11-02 13:20:14 +00:00