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

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

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

9 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")
 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

9 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

9 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

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

9 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

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

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

9 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?

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

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

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

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

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

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

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

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

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

9 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

9 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

9 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

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

9 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

9 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 bpy_sys.py last commit

9 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

9 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

9 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

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

9 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

9 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

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

9 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

9 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

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

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

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

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

9 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

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

9 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

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

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

9 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

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

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

9 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

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

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

9 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

9 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

9 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

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

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

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

9 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

9 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

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

9 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

9 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

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

9 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

9 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

9 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

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

9 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

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

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

9 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

9 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

9 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

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

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

9 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

9 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

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

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

9 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!

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

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

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

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

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

9 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

9 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

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

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

9 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"

9 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!

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

9 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 *

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

9 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

9 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

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

9 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

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

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

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