Commit Graph

25571 Commits

Author SHA1 Message Date
Campbell Barton
4b40d73bfb rename most scons build targets to match cmake 2010-08-25 04:30:47 +00:00
Campbell Barton
b54d16858f bugfix [#23456] context.main.filepath lost after undo
G.sce was being restored after undo but not G.main->name
 also changed reading a new file so G.main->name gets set to the startup.blend even if its not on the disk, not ideal but would set to <memory2> otherwise.
2010-08-25 04:03:38 +00:00
Dalai Felinto
8ffc50e45c bpy.context.manager.clipboard get/set function (to get/set the Clipboard from a script)
Thanks Campbell - one day I get used to C pointer management hell :)

* when using it to get, the whole string comes in one single line with Linux EOL (\n)
* works only for text
2010-08-25 03:44:13 +00:00
Campbell Barton
c6a3fb8545 bugfix [#23469] Missing Parent Menu in Pose mode 2010-08-25 02:56:37 +00:00
Campbell Barton
a992fec4e7 bugfix
- image filepath in the image view would only be set when first loading a frame.
- check to free animated image buffers on opengl render was comparing against the wrong value.
2010-08-25 02:32:02 +00:00
Robert Holcomb
a42c490a04 Applied patch #23379. Does not change existing .blend files and looks
good.
2010-08-25 02:18:37 +00:00
Campbell Barton
86ad6837c5 fix for image sequence ranges 2010-08-25 02:00:55 +00:00
Dalai Felinto
31a9a587ca renaming recast_type to type_recast so people don't miss this.
Discussed with Campbell.
2010-08-25 01:51:38 +00:00
Campbell Barton
c09ed77697 bugfix/aviodance for [#23488] bpy.types.Texture.type don´t update the parameters of texture
bpy.data.textures.new() now has a type argument since changing the type after forces the hacky use of recast_type().
2010-08-25 01:20:50 +00:00
Campbell Barton
6b45d94c99 bugfix [#23487] Lasso select does not update selected object count 2010-08-25 00:58:15 +00:00
Campbell Barton
a0c843ada2 bugfix [#23452] Camera added in python is not correctly rotated 2010-08-25 00:54:03 +00:00
Campbell Barton
ad405f0cb7 remove rna function template_triColorSet(), was only used in one place and can be done just as well with 3 function calls. 2010-08-25 00:34:40 +00:00
Campbell Barton
e7a1acb1f6 patch [#23471] x3d export broken: empty files
from Christopher Creutzig (ccreutzig)
2010-08-25 00:21:34 +00:00
Dalai Felinto
fc0af23d2d Bugfix: [#23472] mesh.uv_textures.new() creates a MeshColorLayer 2010-08-25 00:15:10 +00:00
Campbell Barton
9854546f37 update to pyrna so deleting an attribute only fails if that attribute resolves to an RNA property. 2010-08-24 23:52:20 +00:00
Nathan Letwory
446122d112 == SCons ==
Make it possible to link statically against libgettext. Set WITH_BF_GETTEXT_STATIC to True and put static lib in BF_GETTEXT_LIB_STATIC (absolute path works probably best). BF_GETTEXT_LIB will be ignored.
2010-08-24 13:08:14 +00:00
Joshua Leung
22e1ca4134 Fixing KeyingSets breakage from recent RNA renaming madness.
* 'Active' on TimeLine header needs to show choices ALL KeyingSets available (Builtins + Scene-Absolutes), not just the ones in Scene ("Absolute Paths")

* The active KeyingSet setting is needed/used-by for both of these.
2010-08-24 06:52:16 +00:00
Campbell Barton
adae794233 py/rna remove functions now all work in a similar way.
- some remove() functions took an int argument rather then the item to remove.
- disallow None argument.
- raise an error if the item isnt in the collection.
2010-08-24 06:40:28 +00:00
Campbell Barton
70e99a3476 make quicky wrapper for cmake.
works like scons where using a subset of the targets name is enough.

  make_quicky.py py
...expands into
  make  bf_python bf_python_ext blender/fast

arguments like -j4 are passed on.
2010-08-24 05:24:37 +00:00
Campbell Barton
6464718083 rename some cmake build targets 2010-08-24 04:29:23 +00:00
Campbell Barton
379fea2d0d move more active variables to be nested in collections. 2010-08-24 04:02:50 +00:00
Campbell Barton
5c604e5524 remove recently added rna function uilayout.prop_search_self() and instead allow collections to be coerced into rna structs when they define a type.
eg:
 row.prop_search_self(scene, "active", "keying_sets", text="")
...becomes
 row.prop_search(scene.keying_sets, "active", scene, "keying_sets", text="")

This is more flexible since it works for other UI functions too.
2010-08-24 03:02:27 +00:00
Campbell Barton
48e34b9956 - pythons 'del somevalue.attr' could crash when used with the rna api (reported by Luca)
eg:
    bpy.context.StringProperty(attr='myprop'); del bpy.context.myprop

- made rna StringProperty/PointerProperty & similar into class methods.

- file selector hide option was inverted
2010-08-24 02:12:09 +00:00
Mitchell Stokes
27edda14dd Updating stubs.c to get the Blenderplayer linking again. 2010-08-24 00:43:32 +00:00
Campbell Barton
f6c323aa42 - move more active properties into their collections:
scene.active_keying_set --> scene.keying_sets.active
  ...same for active_uv_texture. active_vertex_color, active_keyconfig, 

- move mesh.add_uv_layer() and mesh.add_vertex_color() into their collections
  also have them return the newly created layer and dont set the layer active.

  uvtex = mesh.uv_layers.new(name)
  vcol = mesh.vertex_colors.new(name)
2010-08-23 22:16:45 +00:00
Campbell Barton
1be4eda552 bugfix [#23454] vector*matrix not the same as vector*=matrix
- they now share the same code so it wont happen again.
- added id_data to properties so we can do...
  matrix = C.object.matrix_world
  obj = matrix.owner.id_data # get the original object back.
2010-08-23 22:10:13 +00:00
Benoit Bolsee
9b685a4b78 Fix quasy systematic crash at Blender exit: globalPool was released twice 2010-08-23 21:31:57 +00:00
Benoit Bolsee
972c6d86f0 BGE bug #23213: VBO preference make object with modifiers crash the BGE. Fix by disabling VBO inside the BGE, it brings no advantage anyway. 2010-08-23 20:53:02 +00:00
Ton Roosendaal
61dd4cd2e2 DPX files are linear now, the gamma value in the file header should
be on 1.0 then, otherwise software thinks it's linear with gamma
applied. Verified on Arri Laser for film recording.
2010-08-23 11:46:12 +00:00
Campbell Barton
e056a03fe4 - rename mesh UV and VertexColor add functions
mesh.add_vertex_color() -> vcol = mesh.vertex_colors.new(name)
  mesh.add_uv_texture() -> uvtex = mesh.uv_textures.new(name)

- pose.active_bone_group -> pose.bone_groups.active, same for UV&vcol layers, keying sets, key configs
2010-08-23 11:04:43 +00:00
Joshua Leung
9993a652b1 Patch #23460: Fix for Outliner; excludes expand button from renaming an object
Submitted by: Alexander Kuznetsov (alexk) 

Ctrl-LMB or Double-Click over the expand buttons in the Outliner would try renaming the object/item, but in 2.4x this only happened over the name.
2010-08-23 11:03:48 +00:00
Joshua Leung
1a067c668c Patch #22855: Replace existing pose in poselib: put frame+name in properties, not only frame
Submitted by: Torsten Rupp (rupp) 

Thanks Torsten for the patch. Previously, replacing poses would name them all "Pose".
2010-08-23 10:46:31 +00:00
Thomas Dinges
8d1ea3a09b * Code tweak for my last commit, missed some break's.
Thanks to Dalai for pointing this out!
2010-08-23 06:56:08 +00:00
Campbell Barton
69067cc2d5 new UI rna function
layout.prop_search_self(), the same as layout.prop_search() except it uses an attribute of the collection.

A number of collections have an 'active' member which couldnt be used with prop_search() and meant we had a mix of active properties being in collections and directly added as properties.
2010-08-23 06:06:26 +00:00
Campbell Barton
b844792bd5 rename UI function
layout.prop_object() --> prop_search().

The internal name is uiItemPointerR, in python this can translate into into an Object, however this is misleading.
It can be confused with a blender Object and uiItemPointerR can also be used for strings.
2010-08-23 05:47:45 +00:00
Campbell Barton
f956e94d13 collection attributes can now be resolved with by rna
this now works...
  bpy.context.scene.path_resolve("objects.active.location")
  
Also added an option to coerce the property into a native pytype.
2010-08-23 05:36:21 +00:00
Campbell Barton
51c0e9b87c cmake patch from lux-integ. 2010-08-23 01:17:14 +00:00
Campbell Barton
11228cb403 rna: move metaball.active_element to metaball.elements.active
added rna funcs...
  elem = metaball.elements.new()
  metaball.elements.remove(elem)
2010-08-23 00:57:19 +00:00
Thomas Dinges
8a320974f1 Fix for [#22741] Material preview doesn't update when "undo" is used to revert a setting.
* Buttons window listens to NC_WINDOW now.
2010-08-22 17:51:58 +00:00
Campbell Barton
a60f79daf7 - rna py-api bug fix, a NULL item in a collection was raising an error
eg: mesh.materials[0] 
 ... when this was an empty slot.

- game world mist panel wasnt updated for rna renaming.
2010-08-22 17:23:08 +00:00
Thomas Dinges
e4700ba58b * Fixing some UI Increment/Decrement issues, where click on left/right triangle in the button would change a decimal which was not seen in the UI.
* Made Decimate slider a percentage slider (as the dna name says percent as well).
2010-08-22 16:44:48 +00:00
Campbell Barton
0267f6a0a3 patch [#23449] RNA renaming bugs
from Jacob F (raccoon)
2010-08-22 16:33:26 +00:00
Campbell Barton
cb678f1020 fix for msvc 2010-08-22 15:50:40 +00:00
Campbell Barton
0bab23633a remove inline loops in a few places
replace with defgroup_find_name() and BLI_findstring()
2010-08-22 14:15:28 +00:00
Campbell Barton
96429a4792 fix for error rna naming 2010-08-22 12:59:13 +00:00
Campbell Barton
2462d4976b possible fix [#23331] Hidden Bones Contribute to Axis Normal
cant redo this bug but noticed a number of places where bone selection/hidden state isn't being set properly.
2010-08-22 10:52:30 +00:00
Brecht Van Lommel
4e4b797165 Fix #23431: crash in brush icon preview when there is no active object. 2010-08-22 10:17:31 +00:00
Brecht Van Lommel
de35361b11 Fix python errors in particles render panel and rigid body joint constraint. 2010-08-22 09:18:26 +00:00
Campbell Barton
6e141b7331 own commit to fix a naming bug caused a new bug. 2010-08-22 07:11:40 +00:00
Campbell Barton
4ca9a7e9c1 - bugfix [#23407] vertex painting on a mesh with no face segfaults
- removed animsys update values that dont need animating.
2010-08-22 06:31:26 +00:00