11 years agoSculpt: svn merge -r24257...
Brecht Van Lommel [Wed, 4 Nov 2009 21:21:30 +0000 (21:21 +0000)]
Sculpt: svn merge -r24257:24330

11 years agoSculpt: tool updates for latest changes
Brecht Van Lommel [Wed, 4 Nov 2009 21:10:28 +0000 (21:10 +0000)]
Sculpt: tool updates for latest changes

* Smooth: vert-face map is now only created when this tool is used, would be
  best to also avoid using it here to avoid a sudden increase in memory, but
  is not trivial.
* Grab: now no longer uses active verts list and loops over nodes like other
* Layer: uses original coordinates from undo now to save memory when not
  using persistent layer.
* Anchored: this option works again now, though is still quite slow as it
  loops over all verts/faces.

Smooth, layer tools and the anchored option could still be improved to use
less memory and/or work faster by only doing things per node.

11 years agoSculpt: now uses it's own Undo stack like editmesh. The main advantage here is
Brecht Van Lommel [Wed, 4 Nov 2009 20:56:46 +0000 (20:56 +0000)]
Sculpt: now uses it's own Undo stack like editmesh. The main advantage here is
that it is able to store changes in the mesh more compact than global undo.

It doesn't integrate well with multires yet, will tackle that when I start
looking into multires, for now still focusing on sculpt on regular meshes.

11 years ago- Stopping jobs on undo wasnt fixing undo/redo while with render previews as it was...
Campbell Barton [Wed, 4 Nov 2009 20:50:09 +0000 (20:50 +0000)]
- Stopping jobs on undo wasnt fixing undo/redo while with render previews as it was supposed to: needed WM_jobs_stop_all rather then WM_jobs_stop because it ends the thread rather then just setting 'stop'.
- gpl header + warning fix

11 years agomake render, world and material buttons show when netrender is selected
Martin Poirier [Wed, 4 Nov 2009 20:42:05 +0000 (20:42 +0000)]
make render, world and material buttons show when netrender is selected

11 years agoSculpt: don't create DM face normals in sculpt mode, only update them if
Brecht Van Lommel [Wed, 4 Nov 2009 20:40:15 +0000 (20:40 +0000)]
Sculpt: don't create DM face normals in sculpt mode, only update them if
they exist already, to save memory.

11 years agoSculpt: updating normals now no longer uses the vert-face map, to save memory.
Brecht Van Lommel [Wed, 4 Nov 2009 20:36:38 +0000 (20:36 +0000)]
Sculpt: updating normals now no longer uses the vert-face map, to save memory.
The weak point now is the thread-safe atomic access to normals from multiple
threads, did not seem to be a bottleneck in my tests but I don't really trust
it to be fast.

11 years agoSculpt: derivedmesh no longer created CD_ORIGINDEX layer when there
Brecht Van Lommel [Wed, 4 Nov 2009 20:23:48 +0000 (20:23 +0000)]
Sculpt: derivedmesh no longer created CD_ORIGINDEX layer when there
is no modifier, saving some memory.

11 years ago- move WM operators out of into their own file
Campbell Barton [Wed, 4 Nov 2009 20:21:08 +0000 (20:21 +0000)]
- move WM operators out of into their own file
- fix operator template

11 years agoSculpt: split generic part of image paint undo system into separate
Brecht Van Lommel [Wed, 4 Nov 2009 20:19:41 +0000 (20:19 +0000)]
Sculpt: split generic part of image paint undo system into separate
paint_undo.c file, to be reused for sculpt.

11 years agoSculpt: fix bug where mouse release event was not caught in some cases.
Brecht Van Lommel [Wed, 4 Nov 2009 20:15:17 +0000 (20:15 +0000)]
Sculpt: fix bug where mouse release event was not caught in some cases.

11 years agoBugfix: sculpt layer brush "persistent" option was not showing up in UI.
Brecht Van Lommel [Wed, 4 Nov 2009 20:12:27 +0000 (20:12 +0000)]
Bugfix: sculpt layer brush "persistent" option was not showing up in UI.

11 years agoSculpt: memory statistics now also print out a small python script to
Brecht Van Lommel [Wed, 4 Nov 2009 20:11:57 +0000 (20:11 +0000)]
Sculpt: memory statistics now also print out a small python script to
plot memory usage, requires matplotlib.

11 years agobugfix [#19804] .MDD is not working?? // Also filetype issue?
Campbell Barton [Wed, 4 Nov 2009 18:35:32 +0000 (18:35 +0000)]
bugfix [#19804] .MDD is not working?? // Also filetype issue?

- made all exporters default to the blend filename with the extension replaced
- MDD's poll function now checks for an active mesh
- multiline docstrings are written as multiline docs when generating epydocs

11 years agoMac / Cocoa:
Damien Plisson [Wed, 4 Nov 2009 17:50:31 +0000 (17:50 +0000)]
Mac / Cocoa:

- Fix update event fired at each loop iteration. Thx Brecht for the patch
- Fix missing deactivate event when in fullscreen mode

11 years agobpy.ops.import.obj("somepath") is invalid syntax because import is a keyword.
Campbell Barton [Wed, 4 Nov 2009 17:16:58 +0000 (17:16 +0000)]
bpy.ops.import.obj("somepath") is invalid syntax because import is a keyword.
rename import to import_scene, import_anim, future import_sequence_edl, import_model etc..

11 years agofix for some python errors
Campbell Barton [Wed, 4 Nov 2009 16:26:08 +0000 (16:26 +0000)]
fix for some python errors

11 years agoMerging change 24311 from COLLADA branch into trunk which should fix object-based...
Arystanbek Dyussenov [Wed, 4 Nov 2009 15:25:57 +0000 (15:25 +0000)]
Merging change 24311 from COLLADA branch into trunk which should fix object-based rotation import/export. Bone rotation animation not fixed yet.

11 years agopython function for adding a driver. eg
Campbell Barton [Wed, 4 Nov 2009 15:16:41 +0000 (15:16 +0000)]
python function for adding a driver. eg

 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

11 years agonew operator directory, move some scripts from io
Campbell Barton [Wed, 4 Nov 2009 14:40:35 +0000 (14:40 +0000)]
new operator directory, move some scripts from io

11 years agoquick update of bvh importer for blender 2.5, mostly this is to test the python api.
Campbell Barton [Wed, 4 Nov 2009 14:33:37 +0000 (14:33 +0000)]
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

11 years agobvh import from 2.4x (unchanged)
Campbell Barton [Wed, 4 Nov 2009 14:31:14 +0000 (14:31 +0000)]
bvh import from 2.4x (unchanged)

11 years agoBridge edge loops would loose all edge flags.
Campbell Barton [Wed, 4 Nov 2009 14:28:43 +0000 (14:28 +0000)]
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

11 years agochange to insert_keyframe() so an array index of -1 keys all arrays indices
Campbell Barton [Wed, 4 Nov 2009 14:06:10 +0000 (14:06 +0000)]
change to insert_keyframe() so an array index of -1 keys all arrays indices
made this default for python so you can do...

rather then
 pose_bone.keyframe_insert("location", 0)
 pose_bone.keyframe_insert("location", 1)
 pose_bone.keyframe_insert("location", 2)

11 years agoparticle vertex group UI
Campbell Barton [Wed, 4 Nov 2009 12:09:02 +0000 (12:09 +0000)]
particle vertex group UI
Changed RNA vgroup access to use strings (string functions adjust the ints used internally)

11 years agoSpline IK: Rolling Control
Joshua Leung [Wed, 4 Nov 2009 11:30:48 +0000 (11:30 +0000)]
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?

11 years agoMake Links (Ctrl+L) back
Campbell Barton [Wed, 4 Nov 2009 10:25:57 +0000 (10:25 +0000)]
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.

11 years agoSecond try at fixing this... the props were still not getting initialised in many...
Joshua Leung [Wed, 4 Nov 2009 09:55:24 +0000 (09:55 +0000)]
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.

11 years agoBugfixes for Adding Objects:
Joshua Leung [Wed, 4 Nov 2009 09:45:37 +0000 (09:45 +0000)]
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...

11 years agoFix #19533: Autoupdate check box not working for UV/Image Editor.
Brecht Van Lommel [Wed, 4 Nov 2009 09:22:16 +0000 (09:22 +0000)]
Fix #19533: Autoupdate check box not working for UV/Image Editor.

11 years agoFix #19742: shape key crashes for curve & lattice.
Brecht Van Lommel [Wed, 4 Nov 2009 09:20:31 +0000 (09:20 +0000)]
Fix #19742: shape key crashes for curve & lattice.

11 years agoFix bug #19749: browsing path in user preferences would crash.
Brecht Van Lommel [Wed, 4 Nov 2009 08:59:01 +0000 (08:59 +0000)]
Fix bug #19749: browsing path in user preferences would crash.

11 years agoFix bug #19699: point density texture doesn't save particle system.
Brecht Van Lommel [Wed, 4 Nov 2009 08:44:42 +0000 (08:44 +0000)]
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.

11 years agoBugfix #19777: Owner Space not Target Space for Action Constraint was getting exposed...
Joshua Leung [Wed, 4 Nov 2009 05:45:57 +0000 (05:45 +0000)]
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.

11 years agoFix for [#19745] displacement modifier is messing up texture coordinates when using...
Matt Ebb [Wed, 4 Nov 2009 05:31:42 +0000 (05:31 +0000)]
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.

11 years agoFix for [#19460] (+) widgets to expand UI elements overlap other windows
Matt Ebb [Wed, 4 Nov 2009 04:13:30 +0000 (04:13 +0000)]
Fix for [#19460] (+) widgets to expand UI elements overlap other windows

11 years agoFix for [#19752] I cant get the particles to render as an object
Matt Ebb [Wed, 4 Nov 2009 03:01:39 +0000 (03:01 +0000)]
Fix for [#19752] I cant get the particles to render as an object

11 years agoSoft bodies care for real time
Jens Ole Wund [Wed, 4 Nov 2009 00:21:25 +0000 (00:21 +0000)]
Soft bodies care for real time

11 years agoMoved the show brush flag from sculpt to paint, and it now shows/hides the brush...
Nicholas Bishop [Tue, 3 Nov 2009 22:50:09 +0000 (22:50 +0000)]
Moved the show brush flag from sculpt to paint, and it now shows/hides the brush as expected. Also fixed some errors in the UI scripts.

11 years agoChanged hand-generated RNA paths to quote strings used as collection indexes.
Matt Ebb [Tue, 3 Nov 2009 22:07:15 +0000 (22:07 +0000)]
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.

11 years agoRemoved the unused partial redraw flag from sculpt. It's original purpose was to...
Nicholas Bishop [Tue, 3 Nov 2009 21:58:24 +0000 (21:58 +0000)]
Removed the unused partial redraw flag from sculpt. It's original purpose was to work around graphics cards that didn't support the old partial redraw method, but that should no longer be an issue.

11 years agouv smart project now in unwrap menu with 2 most important options
Campbell Barton [Tue, 3 Nov 2009 18:56:42 +0000 (18:56 +0000)]
uv smart project now in unwrap menu with 2 most important options

11 years ago- remove UV mapping operator, call a header menu directly (so python can add items...
Campbell Barton [Tue, 3 Nov 2009 18:20:03 +0000 (18:20 +0000)]
- remove UV mapping operator, call a header menu directly (so python can add items there)
- forgot to move last commit

11 years agorenamed bpy.sys to bpy.utils, since it used to be a attempt to replace pythons sys...
Campbell Barton [Tue, 3 Nov 2009 18:08:25 +0000 (18:08 +0000)]
renamed bpy.sys to bpy.utils, since it used to be a attempt to replace pythons sys which is bundled now

11 years agoquick port of smart project to 2.5x, no operator options yet
Campbell Barton [Tue, 3 Nov 2009 17:51:22 +0000 (17:51 +0000)]
quick port of smart project to 2.5x, no operator options yet

11 years agoscript copied from 2.4x with no changes
Campbell Barton [Tue, 3 Nov 2009 17:47:44 +0000 (17:47 +0000)]
script copied from 2.4x with no changes

11 years agoPatch [#19799] Add trackball loop to rotate manipulator
Martin Poirier [Tue, 3 Nov 2009 17:44:12 +0000 (17:44 +0000)]
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.

11 years agoerror in last commit (wasnt writing NULL when no active property exists)
Campbell Barton [Tue, 3 Nov 2009 17:00:38 +0000 (17:00 +0000)]
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

11 years agoactive property for collections for things like
Campbell Barton [Tue, 3 Nov 2009 16:07:29 +0000 (16:07 +0000)]
active property for collections for things like
will add more properties later

11 years ago- Shift+F1 is append in 2.4x (not link). Lee asked it to be made the same.
Campbell Barton [Tue, 3 Nov 2009 11:00:10 +0000 (11:00 +0000)]
- 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.

11 years agoMac :
Damien Plisson [Tue, 3 Nov 2009 09:56:18 +0000 (09:56 +0000)]
Mac :
- add optimize flags setting in CMake for release builds

11 years agoSlightly nicer OS X quit message
Matt Ebb [Tue, 3 Nov 2009 07:24:22 +0000 (07:24 +0000)]
Slightly nicer OS X quit message

11 years agowhitespace commit, (was some tabs mixed with spaces too)
Campbell Barton [Tue, 3 Nov 2009 07:23:02 +0000 (07:23 +0000)]
whitespace commit, (was some tabs mixed with spaces too)

11 years agoFix [#19759] Point Density Texture
Matt Ebb [Tue, 3 Nov 2009 06:04:42 +0000 (06:04 +0000)]
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)

11 years ago* Fix for bug [#19726] Cannot add FCurve to any option under the physics panel except...
Matt Ebb [Tue, 3 Nov 2009 02:49:36 +0000 (02:49 +0000)]
* 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...?

11 years ago== COLLADA ==
Nathan Letwory [Mon, 2 Nov 2009 23:55:04 +0000 (23:55 +0000)]

* fix win64 build and add proper library usage for COLLADA 64bit. Update also lib/win64 (r24263).

11 years agofixing minor issues
Jens Ole Wund [Mon, 2 Nov 2009 23:42:08 +0000 (23:42 +0000)]
fixing minor issues
such as ignoring forward timing rule

11 years agoMac :
Damien Plisson [Mon, 2 Nov 2009 20:40:47 +0000 (20:40 +0000)]
Mac :
- remove CMake warnings when building with openMP

11 years agoupdate from Keith Boshoff, use selected faces while in face-mask mode as well as...
Campbell Barton [Mon, 2 Nov 2009 20:18:05 +0000 (20:18 +0000)]
update from Keith Boshoff, use selected faces while in face-mask mode as well as some other cleanup

11 years agoMake transform axis constraint projection more robust (less flip).
Martin Poirier [Mon, 2 Nov 2009 19:37:18 +0000 (19:37 +0000)]
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.

11 years agoSculpt: svn merge -r24152...
Brecht Van Lommel [Mon, 2 Nov 2009 18:56:56 +0000 (18:56 +0000)]
Sculpt: svn merge -r24152:24257

11 years agoSculpt: Multithreading & PBVH Changes
Brecht Van Lommel [Mon, 2 Nov 2009 18:47:03 +0000 (18:47 +0000)]
Sculpt: Multithreading & PBVH Changes

* Sculpting, normal update and bounding box code is now multithreaded
  using OpenMP.
* Fix a number of update issues: normals on node boundaries, outdated
  bounding boxes, partial redraw, .. . There's probably still a few
  left, but should be better now.
* Clicking once now does a single paint instead of two (was also
  painting on mouse up event).
* Smooth shading now is enabled for the full mesh when the first face
  uses it (so it can be tested at least).

Implementation Notes:

* PBVH search can now be done either using a callback or bt gathering the
  nodes in an array. The latter makes multithreading with OpenMP easier.
* Normals update code is now inside PBVH, was doing it per node before but
  should do all faces first and only then vertices.
* Instead of using search modes + 1 modified flag, now nodes get 4 flags
  to indicate what needs to be updated for them, found that this makes it
  easier for me to understand the code and fix update bugs.
* PBVHNode is now exposed as an abstract type, I think this makes it more
  clear what is happening than having it's data passed as part of callback
* Active_verts list was replaced by looping over nodes and the vertices
  inside them. However the grab brush still uses the active_verts system,
  will fix that later.
* Some micro-optimizations, like avoiding a few multiplications/divisions,
  using local variables instead of pointers, or looping over fewer vertices
  to update the bounding boxes.

11 years agohow embarrassing!
Campbell Barton [Mon, 2 Nov 2009 17:25:15 +0000 (17:25 +0000)]
how embarrassing!

11 years ago- "selected_pchans" is now at screen level context (not just view3d) so can use for...
Campbell Barton [Mon, 2 Nov 2009 17:24:06 +0000 (17:24 +0000)]
- "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

11 years agoEnabled theme editing in user preferences. There's still no way to Load/Save/Add...
William Reynish [Mon, 2 Nov 2009 17:18:17 +0000 (17:18 +0000)]
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.

11 years agoarmatures didnt allocate enough memort for make_trans_verts
Campbell Barton [Mon, 2 Nov 2009 17:15:14 +0000 (17:15 +0000)]
armatures didnt allocate enough memort for make_trans_verts
result in blender crash when pressing numpad del.

11 years agomoving nodes would crash because it ran object update functions
Campbell Barton [Mon, 2 Nov 2009 16:55:06 +0000 (16:55 +0000)]
moving nodes would crash because it ran object update functions

11 years agoPose bone menu (Ctrl+G) wasnt working, replace with a reference to python menu.
Campbell Barton [Mon, 2 Nov 2009 16:39:45 +0000 (16:39 +0000)]
Pose bone menu (Ctrl+G) wasnt working, replace with a reference to python menu.

11 years ago- all add object operators now take view_align as an argument, and enter_editmode...
Campbell Barton [Mon, 2 Nov 2009 16:07:49 +0000 (16:07 +0000)]
- 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)

11 years agoMac :
Damien Plisson [Mon, 2 Nov 2009 14:03:13 +0000 (14:03 +0000)]
Mac :
- Updated CMake files for building with openCollada

Update of the 10.5 libs including openCollada is coming in next commit

11 years ago*Added subdivide to armature toolbar, and gave it a hotkey (W)
William Reynish [Mon, 2 Nov 2009 13:20:14 +0000 (13:20 +0000)]
*Added subdivide to armature toolbar, and gave it a hotkey (W)
*Fixed some remaining icon issue in the shape key properties

11 years ago* Set some custom empty draw types on adding force fields, where relevant
Matt Ebb [Mon, 2 Nov 2009 11:37:35 +0000 (11:37 +0000)]
* Set some custom empty draw types on adding force fields, where relevant

11 years ago* Added a new 'bone constraint' property editor icon and panel titles to distinguish...
Matt Ebb [Mon, 2 Nov 2009 11:36:45 +0000 (11:36 +0000)]
* Added a new 'bone constraint' property editor icon and panel titles to distinguish bone constraints from object constraints

It was a bit too confusing and people were easily getting them mixed up.

11 years agoMac / COCOA :
Damien Plisson [Mon, 2 Nov 2009 11:20:31 +0000 (11:20 +0000)]
Mac / COCOA :
- revert tiff load/save to use standard libtiff (to ensure 100% colorimetry & alpha interpretation across platforms)
- include patch #18720 to fix load of libtiff dynlib (if present on system)

11 years agomany operators uses Bases, for the python to set operators context python too needs...
Campbell Barton [Mon, 2 Nov 2009 11:14:22 +0000 (11:14 +0000)]
many operators uses Bases, for the python to set operators context python too needs to be able to access bases.
- added scene.bases (like scene.objects)
- renamed group create operator.

 scene =[0]
 C = {}
 C["scene"] = scene
 C["selected_editable_bases"] = [scene.bases[2], scene.bases[3]]

Also made operator fake modules not return __call__ (reported by Stani, fixes autocomp. bug)

11 years agoFix for bug [#19668] Blender freezes if step size 0 is used for a volumetric material...
Matt Ebb [Mon, 2 Nov 2009 10:30:51 +0000 (10:30 +0000)]
Fix for bug [#19668] Blender freezes if step size 0 is used for a volumetric material --  limit the minimum step size

11 years agoFixed typo in key display code, was making the shortcuts for [ and ] (used in bone...
Matt Ebb [Mon, 2 Nov 2009 10:20:06 +0000 (10:20 +0000)]
Fixed typo in key display code, was making the shortcuts for [ and ] (used in bone selection) inverted in the menu shortcut hint

11 years agoSpline IK Experimental Features:
Joshua Leung [Mon, 2 Nov 2009 10:04:37 +0000 (10:04 +0000)]
Spline IK Experimental Features:
1) "Even Divisions" - This option ignores the length of bones when considering how they should fit along the curve. This is useful for getting a smoother curve fit without having to worry about getting the bone lengths spot on. By default, this is disabled.

2) "Keep Max Length" - This option prevents the bone chain from extending past its natural length when the spline is stretched beyond that length. When the spline length is substatially shorter though, this bones get scaled to zero; making this option possibly useful for doing "growing tips".
This is essentially a 'no scale' option, although the behaviour when the curve is shorter is really a compromise since the curve cannot be accurately satisfied + left intact without some scaling being applied due to the way this works.

3) "Radius to Thickness" - The average radius of the spline between at the head+tail of each bone determines the x+z scaling of the bone.

11 years agoAdded back texture filter/minimum settings to image texture properties
Matt Ebb [Mon, 2 Nov 2009 09:31:55 +0000 (09:31 +0000)]
Added back texture filter/minimum settings to image texture properties

11 years agovertex paint script ported by - Keith "Wahooney" Boshoff
Campbell Barton [Mon, 2 Nov 2009 09:26:55 +0000 (09:26 +0000)]
vertex paint script ported by - Keith "Wahooney" Boshoff
- Add back nicer normal calculation function
- Make pep8 compliant
- Add vertex color layer when none exist

11 years agomake python operator instances subclasses of the wmOperator when called.
Campbell Barton [Mon, 2 Nov 2009 08:32:00 +0000 (08:32 +0000)]
make python operator instances subclasses of the wmOperator when called.
was subclassing the operator's type before.

Removes the need for passing self.__operator__, can pass self directly.

11 years agoAdded some missing menu items + fixes
Matt Ebb [Mon, 2 Nov 2009 08:05:16 +0000 (08:05 +0000)]
Added some missing menu items + fixes

11 years ago== COLLADA ==
Nathan Letwory [Mon, 2 Nov 2009 00:30:52 +0000 (00:30 +0000)]

* proper library names and order. Goes together with 76MB commit for r24225

11 years agolast commit broke running python operators
Campbell Barton [Mon, 2 Nov 2009 00:20:07 +0000 (00:20 +0000)]
last commit broke running python operators
note that you can still set rna properties like this.["var"] = 1

but this is only stored for the python objects lifetime and not actually attached to blenders data

11 years agoSpline IK Bugfixes 1:
Joshua Leung [Sun, 1 Nov 2009 22:30:47 +0000 (22:30 +0000)]
Spline IK Bugfixes 1:
* Fixed crash when reloading a file with Spline IK and/or Damped Track constraints. The targets for these constraints weren't getting relinked.
* Fixed problems with removing Spline IK making some bones unable to be manipulated.
* Jotted down some comments in the Spline IK code noting places where additional tweaks will be added.

11 years agorna structs would not raise an error when assigning invalid properties
Campbell Barton [Sun, 1 Nov 2009 21:53:45 +0000 (21:53 +0000)]
rna structs would not raise an error when assigning invalid properties
netrender needed updating for this.
 hint, is not a module

11 years agoSimplify gimbal axis code and make gimbal orientation work correctly with parents...
Martin Poirier [Sun, 1 Nov 2009 21:10:54 +0000 (21:10 +0000)]
Simplify gimbal axis code and make gimbal orientation work correctly with parents (objects or pose bones). Works for all euler orders too, obviously.

11 years agoFix view3d rna to work with new number of orientations (use constant instead of value...
Martin Poirier [Sun, 1 Nov 2009 20:17:30 +0000 (20:17 +0000)]
Fix view3d rna to work with new number of orientations (use constant instead of value, safer for future).

11 years agoafter transform update didn't run because of stupid typo
Martin Poirier [Sun, 1 Nov 2009 20:09:03 +0000 (20:09 +0000)]
after transform update didn't run because of stupid typo

11 years agoFixed a few icons in user preferences Input tab
William Reynish [Sun, 1 Nov 2009 19:45:50 +0000 (19:45 +0000)]
Fixed a few icons in user preferences Input tab

11 years agoadd_mesh_torus now passes the pep8 test
Campbell Barton [Sun, 1 Nov 2009 18:07:35 +0000 (18:07 +0000)]
add_mesh_torus now passes the pep8 test

11 years agoAdded proper icon for full screen mode. Would be nice to have this button eventually...
William Reynish [Sun, 1 Nov 2009 18:05:01 +0000 (18:05 +0000)]
Added proper icon for full screen mode. Would be nice to have this button eventually be right-aligned.

11 years agoMSVC project files update for collada. It won't compile yet, waiting for lib/windows...
Benoit Bolsee [Sun, 1 Nov 2009 17:12:09 +0000 (17:12 +0000)]
MSVC project files update for collada. It won't compile yet, waiting for lib/windows/collada to be updated.

11 years agoCorrect GPL license header for all python scripts
Martin Poirier [Sun, 1 Nov 2009 15:21:20 +0000 (15:21 +0000)]
Correct GPL license header for all python scripts

11 years agoCompile fix for too many arguments to uiItemO
Martin Poirier [Sun, 1 Nov 2009 14:19:35 +0000 (14:19 +0000)]
Compile fix for too many arguments to uiItemO

11 years ago* OpenGL Render is now available again from the View3D Header.
Thomas Dinges [Sun, 1 Nov 2009 14:04:37 +0000 (14:04 +0000)]
* OpenGL Render is now available again from the View3D Header.

11 years agoQuick tweak to version patching code for Camera IPO's to fix one of the issues in...
Joshua Leung [Sun, 1 Nov 2009 11:33:41 +0000 (11:33 +0000)]
Quick tweak to version patching code for Camera IPO's to fix one of the issues in bugreport 19761.

For now, this just assumes that the 'lens' parameter was animated (assuming a perspective lens was used). Unfortunately, this may not always be correct, but at least there's a path now that can lead to further tweaking.

11 years agoRigging Goodies: Spline IK Constraint
Joshua Leung [Sun, 1 Nov 2009 11:29:40 +0000 (11:29 +0000)]
Rigging Goodies: Spline IK Constraint

At last, this commit introduces the Spline IK Constraint to Blender. Spline IK is a constraint that makes n bones follow the shape of a specified curve.

Simply add a chain of bones, add a curve, add a Spline IK Constraint to the tip bone and set the number of bones in the chain to make it work. Or, try the following test file:

Screenshots of this in action (as proof):

I've implemented this in a similar way to how standard IK solvers are done. However, this code is currently not an IK plugin, since I imagine that it would be useful to be able to combine the 2 types of IK. This can be easily changed though :)

Finally, a few notes on what to expect still:
* Constraint blending currently doesn't affect this. Getting that to work correctly will take a bit more work still.
* Options for not affecting the root joint (to make it easier to attach the chain to a stump or whatever), and non-uniform scaling options have yet to be added. I've marked the places where they can be added though
* Control over the twisting of the chain still needs investigation.

Have fun!

11 years ago* Some guideline work for the particle py file.
Thomas Dinges [Sun, 1 Nov 2009 10:45:42 +0000 (10:45 +0000)]
* Some guideline work for the particle py file.
* Minor layout tweaks in Node RNA to match most other RNA enums.

11 years agoMac / COCOA :
Damien Plisson [Sun, 1 Nov 2009 08:23:53 +0000 (08:23 +0000)]
Mac / COCOA :
- fix imbuf Cocoa resolution handling issue