blender.git
10 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

10 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

10 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

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

10 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

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

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

10 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

10 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

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

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

10 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...?

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

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

10 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

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

10 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

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

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

10 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

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

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

10 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

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

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

10 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

10 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

10 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

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

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

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

Example
 scene = bpy.data.scenes[0]
 C = {}
 C["scene"] = scene
 C["selected_editable_bases"] = [scene.bases[2], scene.bases[3]]

 bpy.ops.group.create(C)

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

10 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

10 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

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

10 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

10 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
Todo
- Add back nicer normal calculation function
- Make pep8 compliant
- Add vertex color layer when none exist

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

10 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

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

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

10 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.
 bpy.data.__dict__["var"] = 1
 print(bpy.data.var)

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

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

10 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, bpy.data is not a module

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

10 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).

10 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

10 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

10 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

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

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

10 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

10 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

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

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

10 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:
http://download.blender.org/ftp/incoming/250_splineik_spine01.blend

Screenshots of this in action (as proof):
http://download.blender.org/ftp/incoming/b250_splineik_001_before.png
http://download.blender.org/ftp/incoming/b250_splineik_001_after.png

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!

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

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

10 years agoObject PET works with autokey.
Martin Poirier [Sun, 1 Nov 2009 02:52:38 +0000 (02:52 +0000)]
Object PET works with autokey.

Reordering some function calls in transform cleanup to make it simpler (that means other fixes are possible too, sequencer probably don't need it's own freeing function anymore).

10 years agomade scripts pass the pep8 test (though not fully pep8 yet)
Campbell Barton [Sat, 31 Oct 2009 23:35:56 +0000 (23:35 +0000)]
made scripts pass the pep8 test (though not fully pep8 yet)
added comment in header to know if a script has been converted or not.

10 years agoGPL2 header from firebird (without disclaimer), notice theres no copyright attributed...
Campbell Barton [Sat, 31 Oct 2009 20:16:59 +0000 (20:16 +0000)]
GPL2 header from firebird (without disclaimer), notice theres no copyright attributed and only the GPLv2 (without the v2 or later clause).
Contributors list isnt used much in our C code so probably its easier if people just use svn blame for this.

Can change if this isnt acceptable but I guessed people didnt care so much since most scripts had no header.

10 years agorenamed buttons ui files to properties to match UI name change, needed to update...
Campbell Barton [Sat, 31 Oct 2009 19:57:59 +0000 (19:57 +0000)]
renamed buttons ui files to properties to match UI name change, needed to update some imports too

10 years agotabs to spaces, remove trailing white space. (apart of pep8)
Campbell Barton [Sat, 31 Oct 2009 19:31:45 +0000 (19:31 +0000)]
tabs to spaces, remove trailing white space. (apart of pep8)
didnt do "release/scripts/io" since some exporters cant be auto converted

10 years agoimproved class validation, variables defined by the rna interface as non-optional...
Campbell Barton [Sat, 31 Oct 2009 18:48:58 +0000 (18:48 +0000)]
improved class validation, variables defined by the rna interface as non-optional could fail silently when absent in the class. Set these to PROP_REGISTER_OPTIONAL and raise an error when others are not found.
last commit broke povray too.

10 years agodefine operator properties in the class, similar to django fields
Campbell Barton [Sat, 31 Oct 2009 16:40:14 +0000 (16:40 +0000)]
define operator properties in the class, similar to django fields

# Before
[
bpy.props.StringProperty(attr="path", name="File Path", description="File path used for exporting the PLY file", maxlen= 1024, default= ""),
bpy.props.BoolProperty(attr="use_modifiers", name="Apply Modifiers", description="Apply Modifiers to the exported mesh", default= True),
bpy.props.BoolProperty(attr="use_normals", name="Export Normals", description="Export Normals for smooth and hard shaded faces", default= True),
bpy.props.BoolProperty(attr="use_uvs", name="Export UVs", description="Exort the active UV layer", default= True),
bpy.props.BoolProperty(attr="use_colors", name="Export Vertex Colors", description="Exort the active vertex color layer", default= True)
]

# After
path = StringProperty(attr="", name="File Path", description="File path used for exporting the PLY file", maxlen= 1024, default= "")
use_modifiers = BoolProperty(attr="", name="Apply Modifiers", description="Apply Modifiers to the exported mesh", default= True)
use_normals = BoolProperty(attr="", name="Export Normals", description="Export Normals for smooth and hard shaded faces", default= True)
use_uvs = BoolProperty(attr="", name="Export UVs", description="Exort the active UV layer", default= True)
use_colors = BoolProperty(attr="", name="Export Vertex Colors", description="Exort the active vertex color layer", default= True)

10 years agochange blender python interface for classes not to ise __idname__ rather bl_idname...
Campbell Barton [Sat, 31 Oct 2009 13:31:23 +0000 (13:31 +0000)]
change blender python interface for classes not to ise __idname__ rather bl_idname since __somename__ is for pythons internal use.

replacements...
"__idname__" -> "bl_idname"
"__props__" -> "bl_props"
"__label__" -> "bl_label"
"__register__" -> "bl_register"
"__undo__" -> "bl_undo"
"__space_type__" -> "bl_space_type"
"__default_closed__" -> "bl_default_closed"
"__region_type__" -> "bl_region_type"
"__context__" -> "bl_context"
"__show_header__" -> "bl_show_header"
"__URL__" -> "_url"

10 years agoCommit of Patch [#19768] Add View3d Menu Items: View -> Playback Animation and View...
Thomas Dinges [Sat, 31 Oct 2009 10:17:19 +0000 (10:17 +0000)]
Commit of Patch [#19768] Add View3d Menu Items: View -> Playback Animation and View->Cameras->Active Camera
by Jeff Doyle (nfz). Thanks!

10 years agoResizing didn't handle PET correctly for size attributes (position was ok, that's...
Martin Poirier [Sat, 31 Oct 2009 02:54:27 +0000 (02:54 +0000)]
Resizing didn't handle PET correctly for size attributes (position was ok, that's why it worked alright in edit mode).

10 years agopep8 compliance for bpy_ops.py
Campbell Barton [Sat, 31 Oct 2009 01:23:49 +0000 (01:23 +0000)]
pep8 compliance for bpy_ops.py
add bpy.props to the modules so you can do...
 from bpy.props import *

10 years agoCommit of Patch [#19711] Add Menu Item: View3d -> View -> Show All Layers
Thomas Dinges [Fri, 30 Oct 2009 21:56:09 +0000 (21:56 +0000)]
Commit of Patch [#19711] Add Menu Item: View3d -> View -> Show All Layers
by Jeff Doyle (nfz). Thanks!

This adds:
* "Show All Layers" to the View3d -> View menu
* "Center Cursor and View All" and "Align
Active Camera to View" to the align view submenu.

10 years agosmall change to strip-swap, Made keys Alt+L/RArrowKey, added in menu, dont treat...
Campbell Barton [Fri, 30 Oct 2009 21:40:07 +0000 (21:40 +0000)]
small change to strip-swap, Made keys Alt+L/RArrowKey, added in menu, dont treat color strips like other effects

10 years agoMake Collada False by default everywhere
Martin Poirier [Fri, 30 Oct 2009 20:47:13 +0000 (20:47 +0000)]
Make Collada False by default everywhere

10 years ago2.5 Sequencer
Andrea Weikert [Fri, 30 Oct 2009 20:40:41 +0000 (20:40 +0000)]
2.5 Sequencer
Swap active sequence with the sequence on the right (CTRL+R) or left (CTRL+L).
was small Durian wish.

Note: in find_next_prev removed the code to find selected only if sel was != 0
I believe it should be possible to pass -1 in the case I want to find the next strip
regardless of selection state.

10 years agoMac / COCOA :
Damien Plisson [Fri, 30 Oct 2009 20:20:48 +0000 (20:20 +0000)]
Mac / COCOA :
- fix 10.4 compile issues

- fix some scons issues & add WITH_BF_COLLADA = False in scons darwin_config.py to allow build waiting for complete Collada Mac implementation

10 years agoB.blend update
William Reynish [Fri, 30 Oct 2009 20:02:56 +0000 (20:02 +0000)]
B.blend update
Received some additional feedback on the various screens

*Added Game Logic screen, with Logic editor, text editor, outliner and 3D view
*Added Properties screen, good for having direct access to loads of properties on a second monitor
*Tweaked UV Editing screen, removing timeline, and providing access to texture mapping and texture layers
*Tweaked Compositing screen, adding image editor and 3D view camera, and providing fast access to passes.
*Reordered some panels in the N-key area
*Added n-key properties area in the sequencer.

10 years ago2.5 Nodes:
Thomas Dinges [Fri, 30 Oct 2009 19:31:44 +0000 (19:31 +0000)]
2.5 Nodes:
* Wrapped Math, Vector Math and Texture Node.

10 years agoRevert changes committed by accident in 24168
Martin Poirier [Fri, 30 Oct 2009 17:50:45 +0000 (17:50 +0000)]
Revert changes committed by accident in 24168
(this was experimental code for "ladder-like" mouse adjustment of float values)

10 years agoProportional edit for object mode.
Martin Poirier [Fri, 30 Oct 2009 17:48:50 +0000 (17:48 +0000)]
Proportional edit for object mode.

Limitations:

1) Parents and children of selected objects are excluded from the pool (siblings are ok) Making it work with that would required unparenting and reparenting after transform, that would turn nasty really quick.

2) Does not support Connected (this could be done through parent links, but see 3 first).

3) Parent relationships in affected objects aren't taken into account. When parent and children in the area of effect, remember that the children will also take the motion of the parents (with additive results). This could perhaps be fixed, but it could be nasty.

Other stuff:
New BASE_EDITABLE macro that checks if base is editable (like TESTBASELIB except it doesn't check for selection)
Add scene parameter to TESTBASELIB_BGMODE macro (using it from current scope is nasty)

10 years ago- setting the active object in rna works properly now (notifiers added)
Campbell Barton [Fri, 30 Oct 2009 17:23:40 +0000 (17:23 +0000)]
- setting the active object in rna works properly now (notifiers added)
- adding keyframes now works for bones and other data types (not just ID types)

# Add a pose bone keyframe
bpy.data.objects['Armature.001'].pose.pose_channels["Hip"].keyframe_insert("location")

# Add an object keyframe (worked before)
bpy.data.objects['Armature.001'].keyframe_insert("location")

10 years agoMerge of the COLLADA GSoC branch into trunk.
Arystanbek Dyussenov [Fri, 30 Oct 2009 15:35:50 +0000 (15:35 +0000)]
Merge of the COLLADA GSoC branch into trunk.

COLLADA code is disabled by default (it has dependencies requiring manual install).

SCons and CMake builds are supported on Windows and Linux, no Mac building yet. More on building COLLADA code: http://wiki.blender.org/index.php/User:Kazanbas/Building_Collada_Branch.

The detailed command log of the merge (can be useful for educational purposes):

branch=https://svn.blender.org/svnroot/bf-blender/branches/soc-2009-chingachgook
# collada code
svn copy $branch/source/blender/collada source/blender/collada
# operator
svn merge -c 20401,20955,21077,24077,24079 $branch/source/blender/windowmanager/intern/wm_operators.c source/blender/windowmanager/intern/wm_operators.c
# menu
svn merge -c 24079 $branch/release/scripts/ui/space_info.py release/scripts/ui/space_info.py
# scons
svn merge -c 20398 $branch/source/blender/SConscript source/blender/SConscript
svn merge -c 20398,20691,20955,22726 $branch/tools/btools.py tools/btools.py
svn merge -c 20691,20955,22726 $branch/tools/Blender.py tools/Blender.py
svn merge -c 20398,20692,20955 $branch/config/linux2-config.py config/linux2-config.py
svn merge -c 22726 $branch/config/win64-vc-config.py config/win64-vc-config.py
svn merge -c 22726 $branch/config/win32-vc-config.py config/win32-vc-config.py
svn merge -c 24077 $branch/source/blender/windowmanager/SConscript source/blender/windowmanager/SConscript
# cmake
svn merge -c 23319,23905,24077,24158 $branch/CMakeLists.txt CMakeLists.txt
svn merge -c 23319 $branch/source/blender/CMakeLists.txt source/blender/CMakeLists.txt
svn merge -c 23319 $branch/source/creator/CMakeLists.txt source/creator/CMakeLists.txt
svn merge -c 23319 $branch/CMake/macros.cmake CMake/macros.cmake
svn merge -c 24077 $branch/source/blender/windowmanager/CMakeLists.txt source/blender/windowmanager/CMakeLists.txt

10 years agoupdating mathutils wrapped attributes now runs rna update functions too
Campbell Barton [Fri, 30 Oct 2009 13:58:43 +0000 (13:58 +0000)]
updating mathutils wrapped attributes now runs rna update functions too

10 years agoown commit r24178 broke adding objects, need to look into why but this fixes for now
Campbell Barton [Fri, 30 Oct 2009 13:26:29 +0000 (13:26 +0000)]
own commit r24178 broke adding objects, need to look into why but this fixes for now

10 years agocheck for error that could happen when making editmode armatures
Campbell Barton [Fri, 30 Oct 2009 13:08:58 +0000 (13:08 +0000)]
check for error that could happen when making editmode armatures

10 years agouse context functions rather then macros
Campbell Barton [Fri, 30 Oct 2009 12:35:17 +0000 (12:35 +0000)]
use context functions rather then macros

10 years ago- Simplified EulToGimbalAxis, its still only works on XYZ and ZXY but at least its...
Campbell Barton [Fri, 30 Oct 2009 12:11:04 +0000 (12:11 +0000)]
- Simplified EulToGimbalAxis, its still only works on XYZ and ZXY but at least its more clear whats going on.
- Made RotOrderInfo use a vector rather then i/j/k
- Added gimbal_axis to transform.h (was extern)

10 years agotwo things; made ctrl-p add an armature modifier instead of using PARSKEL, and also...
Joseph Eagar [Fri, 30 Oct 2009 09:50:35 +0000 (09:50 +0000)]
two things; made ctrl-p add an armature modifier instead of using PARSKEL, and also made wpaint auto-normalize work with PARSKEL armature setups

10 years agoPatch from Stani for autocomplete
Campbell Barton [Fri, 30 Oct 2009 09:34:57 +0000 (09:34 +0000)]
Patch from Stani for autocomplete
adds ability to complete in these situations
 bpy -> bpy.
 bpy.data.objects -> bpy.data.objects["Mesh"]

my autocomplete could only do bpy -> bpy.

10 years agoNew Track To Constraint: "Damped"
Joshua Leung [Fri, 30 Oct 2009 06:33:40 +0000 (06:33 +0000)]
New Track To Constraint: "Damped"

This is effectively a C-port of Nathan Vegdahl's "No Twist" TrackTo PyConstraint, and has been added as a separate type of constraint to be consistent with the existing constraints (Locked Track, and Track To).

In general, this works considerably better than the existing "Track To" constraint, since it works by determining the smallest rotation necessary to get the current orientation of the owner to an orientation which would be tracking the target. It is also a much more straightforward approach than the weird old method the old Track To uses.

I've made a few tweaks to the code to deal with the (hopefully rare) cases where the target and the constrained are coincident. These don't appear to cause too much trouble in general.

TODO:
- Probably the naming of the constraints will change, to better convey their purposes. Naming suggestions welcome.

10 years agoadded an 'auto-normalize' option for weight paint mode, that automatically ensures...
Joseph Eagar [Fri, 30 Oct 2009 02:09:52 +0000 (02:09 +0000)]
added an 'auto-normalize' option for weight paint mode, that automatically ensures vertex groups that affect bones all add up to 1.0.  please test and give feedback.

10 years ago* Some Whitespace and small code-guideline cleanup.
Thomas Dinges [Thu, 29 Oct 2009 23:46:12 +0000 (23:46 +0000)]
* Some Whitespace and small code-guideline cleanup.

10 years ago* Tiny Force Field Layout improvements and tooltip fix by nudelZ. Thanks!
Thomas Dinges [Thu, 29 Oct 2009 22:08:09 +0000 (22:08 +0000)]
* Tiny Force Field Layout improvements and tooltip fix by nudelZ. Thanks!

10 years agoBGE patch #19751: Add game actuator like methods to GameLogic.
Benoit Bolsee [Thu, 29 Oct 2009 21:59:31 +0000 (21:59 +0000)]
BGE patch #19751: Add game actuator like methods to GameLogic.

10 years agoWhen transform orientation is not orthogonal (which is often the case with Gimbal...
Martin Poirier [Thu, 29 Oct 2009 21:34:09 +0000 (21:34 +0000)]
When transform orientation is not orthogonal (which is often the case with Gimbal), orthogonalize the orientation separately when drawing each rotation circles (this makes sure they really appear perpendicular and not just be that way in the skewed space of the orientation).

10 years agoFunctions to test for and correct orientation matrix orthogonality (since MatXOrtho...
Martin Poirier [Thu, 29 Oct 2009 21:31:55 +0000 (21:31 +0000)]
Functions to test for and correct orientation matrix orthogonality (since MatXOrtho only normalizes and should probably be renamed)

10 years ago* Added greying out for Bound Box Menu.
Thomas Dinges [Thu, 29 Oct 2009 21:31:00 +0000 (21:31 +0000)]
* Added greying out for Bound Box Menu.

10 years agoreplacement for my own autocomplete module by stani
Campbell Barton [Thu, 29 Oct 2009 20:55:45 +0000 (20:55 +0000)]
replacement for my own autocomplete module by stani

--- from his patch
All the functionality is in the console
folder:
- intellisense.py: the central module which loads others on demand
- complete_namespace: more or less a replacement for the old autocomplete.py
- complete_import: module completion (I find this very handy, not just luxury)

These complete_* modules work very simple and should also work outside blender. You give some  input and it returns a list with possible completions.

autocomplete.py is now deprecated.

10 years agomoved the following into the screen context rather then the view3d context so python...
Campbell Barton [Thu, 29 Oct 2009 19:59:38 +0000 (19:59 +0000)]
moved the following into the screen context rather then the view3d context so python scripts can access these when running in the console.
 "visible_bones", "editable_bones", "selected_bones", "selected_editable_bones", "visible_pchans", "selected_pchans", "active_bone", "active_pchan",

added "C" to the consoles namespace, temp hack but useful

10 years agoSmoke:
Daniel Genrich [Thu, 29 Oct 2009 19:26:13 +0000 (19:26 +0000)]
Smoke:
* Bugfix for crash when deleting particle system used by Smoke Flow modifier (reported by nudelZ).

10 years agoNo need to force ortho on a unit matrix
Martin Poirier [Thu, 29 Oct 2009 18:59:48 +0000 (18:59 +0000)]
No need to force ortho on a unit matrix

10 years agovarious small fixes
Campbell Barton [Thu, 29 Oct 2009 18:49:36 +0000 (18:49 +0000)]
various small fixes
- undo stops all running jobs (operator redo was crashing with threaded render)
- adding new armatures was crashing if there was no valid view3d
- transform with an active hidden object would crash

10 years agoSVN maintenance.
Guillermo S. Romero [Thu, 29 Oct 2009 18:37:34 +0000 (18:37 +0000)]
SVN maintenance.

10 years agoMac / COCOA : Imbuf
Damien Plisson [Thu, 29 Oct 2009 18:06:49 +0000 (18:06 +0000)]
Mac / COCOA : Imbuf

- replace libtiff by calls to Cocoa services to load/save tiff files
(Libtiff, dynamically linked is not distributed with OS X, and would have had to be shipped for all four architectures)

The imb_cocoaLoadImage & imb_cocoaSaveImage are generic towards the bitmap format, and thus can handle TIFF, GIF, JPG, JP2000, BMP and raw camera formats (read-only for these), even if today only TIFF is used as the other formats are already handled.

- CMake updated
- scons updated (Thx to Jens Verwiebe)

10 years agoFixed [#19735] No normal map button in texture->image pane
Thomas Dinges [Thu, 29 Oct 2009 14:27:56 +0000 (14:27 +0000)]
Fixed [#19735] No normal map button in texture->image pane
Put it into the "Image Sampling" Panel, not sure if its the right location.