Commit Graph

21648 Commits

Author SHA1 Message Date
Campbell Barton
4f5f868a52 rna data path names which are more likely to break animations.
Added an operator "Update Animation Data",
access from the search menu to update drivers and fcurves.
2010-08-20 06:09:58 +00:00
Campbell Barton
4afe81c726 bugfix [#23396] proportinal editing hotkey ("o") does not work
error in recent commit
2010-08-20 05:23:12 +00:00
Campbell Barton
097a6ca926 rna remaining that negates values 2010-08-20 02:08:43 +00:00
Campbell Barton
bea1c4fb13 misc rna renaming. 2010-08-19 17:46:00 +00:00
Campbell Barton
fedde2f8e3 rna rename Spline/Curve/Text3D 2010-08-19 17:31:10 +00:00
Campbell Barton
7c98860a0d rna renaming FModifier & GameObjectSettings 2010-08-19 17:10:43 +00:00
Campbell Barton
eee445590a rna naming mainly forBoids 2010-08-19 15:49:30 +00:00
Campbell Barton
8e388a8f49 fixes for recent renaming 2010-08-19 14:43:52 +00:00
Campbell Barton
486b3cd2f5 more rna renaming for non-animated properties: mainly Texface, Particle & Pointcache changes.
Changed some names when applying.
- render was use_render, changed to show_viewport so call it show_render
- texface shadow was use_shadow_face, changed to use_shadow_cast since this only affects casting.
- transp was alpha_mode, changed to blend_type since its similar to other overlay blending where this property name is used.
2010-08-19 12:51:31 +00:00
Campbell Barton
736edd547b fix for error in recent renaming 2010-08-19 11:04:46 +00:00
Campbell Barton
4e3390437e - Properties from base classes are now registered too, this allows class mix-in's to define properties.
An example of how this is useful - an importer mixin could define the filepath properties and a generic invoke function which can run the subclasses exec for each selected file.

- Panels and Menus now skip the property check when registering.

- renamed _idproperties_ to _idprops_ in function names, function names were getting very long.
2010-08-19 10:16:30 +00:00
Campbell Barton
98140e234e - pyrna fix for reference counting when unable to register a property
- added modified 'Warp' enum to reserve this ID for durian files until the modifier is merged.
2010-08-19 05:58:22 +00:00
Campbell Barton
5e53012558 utility function for updating animation system values when RNA changes.
- any numnber of attributes are supported for renaming, eg: modifiers["Foo.Bar"].prop.bar
- the path is resolved in blender so each attribute is type checked against the naming list.
- inherited properties are supported by recursively checking parent classes names aganst the name list.
- fcurves and drivers are currently supported.
2010-08-18 18:00:52 +00:00
Campbell Barton
399dda68d8 fix errors with recent commits. 2010-08-18 10:42:00 +00:00
Campbell Barton
c04199b3a1 rna naming mainly for Scene/IK/KeyingSet's 2010-08-18 08:58:37 +00:00
Campbell Barton
55ed0f0507 more rna renaming. 2010-08-18 08:26:18 +00:00
Campbell Barton
513a907730 rna rename Bone and Text changes 2010-08-18 07:45:32 +00:00
Campbell Barton
7da5d9faec rna renaming, still only adjusting properties that wont be animated (at least its very unlikely). 2010-08-18 07:14:10 +00:00
Campbell Barton
54e6ea70c0 rna renaming for Render* structs 2010-08-18 04:10:23 +00:00
Campbell Barton
64347d81c4 rna renaming for 'Brush' struct 2010-08-18 03:56:14 +00:00
Campbell Barton
9784a1169d rna naming: verts -> vertices 2010-08-18 03:42:26 +00:00
Campbell Barton
f32a35fd9d apply rna naming for ToolSettings 2010-08-18 03:24:52 +00:00
Campbell Barton
a34721d24b minor update rna namer and script to automatically apply updates from blender to rna_properties.txt 2010-08-18 03:05:14 +00:00
Dalai Felinto
f80f412701 Fix for [#23352] Update Problem in Texture tab
I added a notifier to update the texture panel whenever you change the active texture. This part of the code seems wip, but the notifier should be there if I'm not mistaken.

The other way around has still bugs (e.g. when you add a new texture Outliner doesn't update automatically). To be tackled later
2010-08-17 21:35:18 +00:00
Campbell Barton
3bd039eff9 apply rna rename most of the show_*, names. 2010-08-17 17:03:52 +00:00
Campbell Barton
c61127d502 apply logic brick rna renaming 2010-08-17 16:27:10 +00:00
Campbell Barton
fab0f053e7 syntax highlighting for decorators, correct doc example 2010-08-17 14:56:10 +00:00
Campbell Barton
b278279c95 document rna functions that have the no_self flag set as classmethods 2010-08-17 14:32:14 +00:00
Campbell Barton
08d55cbe98 merged in applied edits from theme/space/prefs 2010-08-17 13:34:30 +00:00
Campbell Barton
7a31417f50 apply UserPrefs and Theme rna naming changes. 2010-08-17 13:14:41 +00:00
Campbell Barton
9dd43244a2 when complaining that an RNA name doesnt exist in the UI, give the struct name as well. 2010-08-17 13:12:58 +00:00
Campbell Barton
8db2707fa2 rna naming changes based on suggestions by Brecht. 2010-08-17 13:11:25 +00:00
Campbell Barton
87477c5d11 fix for error with removing MEM_guardedalloc.h, not sure why I didnt get this warning when rebuilding yesyerday. 2010-08-17 11:10:48 +00:00
Thomas Dinges
a3d28f4899 2.5 Nodes:
* Range Limit function for Image Output Frame Start/End properties.
2010-08-17 09:59:55 +00:00
Thomas Dinges
13da233a62 2.5 Nodes:
* Property Ranges for the Vector Blur Node were missing, added them in RNA.
2010-08-17 09:41:56 +00:00
Thomas Dinges
2e2592127e 2.5 Texture Panels:
* Removed "Plugin" Texture Type from the Interface as it is not implemented in 2.5 atm.
2010-08-17 08:56:47 +00:00
Thomas Dinges
e0c2791508 2.5 Modifiers:
* Don't show "Copy" Operator for Smoke Modifier in the stack.
2010-08-17 08:34:27 +00:00
Campbell Barton
b9d99b9c5b apply all rna naming changes for rna_space.c 2010-08-17 07:49:53 +00:00
Campbell Barton
40bf37e3b6 use 'vertices' rather then 'verts'. 2010-08-17 03:17:51 +00:00
Campbell Barton
5f7045f7af - rna_info.py now outputs array length with types eg. float[16].
- corrected rna property name Controller.states -> state (pointed out by Dalai).
- rna_cleaner_merge script now only merges comment and new name.
2010-08-17 02:42:30 +00:00
Guillermo S. Romero
d03c94d8d9 Group all AUD libs, duplicate one to avoid linker error. 2010-08-17 01:50:47 +00:00
Thomas Dinges
29ea841d1e 2.5 Modifier/Constraint Template
* Code removal of "compact" feature, after narrow_ui removal this was not functional anyway.
2010-08-16 23:28:20 +00:00
Joerg Mueller
26809f38aa Audaspace: This should fix all missing python includes now once for all... 2010-08-16 20:05:59 +00:00
Joerg Mueller
1964b2329e Scons:
* Should now build again without problems
* Fixed scons having problems to execute makes(d/r)na if build path contains spaces
2010-08-16 19:09:42 +00:00
Joerg Mueller
9bb21deec6 Audaspace: Further fixes. 2010-08-16 18:50:59 +00:00
Joerg Mueller
01d61095cd Audaspace: Scons fix for missing python include paths. 2010-08-16 18:29:19 +00:00
Joerg Mueller
8d7204ac04 Audaspace: Buildsystem update after Ton destroyed building with scons and cmake, also including a patch by freakabcd fixing some missing python include paths. 2010-08-16 18:22:51 +00:00
Campbell Barton
5ab7047f65 merged rna names with newly created dump from rna_info.py 2010-08-16 17:57:39 +00:00
Campbell Barton
0861f59ecf - finished RNA renaming for review
- fix warning
2010-08-16 17:17:33 +00:00
Ton Roosendaal
dc3ca6dcda More makefiles for new audaspace commit.
Jorg: you have added an include Python.h in the AUD api.h. I'm not
sure if it's smart to have this, it makes all AUD code depend on
resolving the Python path.
2010-08-16 17:07:59 +00:00
Kent Mein
dc4946f03c Added missing include for audio stuff.
Still not linking with Makefiles, will try and fix later.

Kent
2010-08-16 15:54:58 +00:00
Joerg Mueller
a3837b617b Audaspace: Fixing quaternion and relativeness of 3D sounds error. 2010-08-16 14:55:45 +00:00
Joerg Mueller
78d96324ae Py API Docs (GSoC): Third merging commit
* Added the alternative docs system with templating functionality
* Added aud to sdg.py
2010-08-16 12:22:19 +00:00
Joerg Mueller
0be08725ad Py API (GSoC): Second merging commit
Rough summary of fixes/changes:
- Blender Py API: GameLogic -> bge.logic
- Blender Py API: Implemented missing KX_PYATTRIBUTE_TODOs and -DUMMYs.
- Fix for [#22924] KX_PolygonMaterial.diffuse does not return expected list[r,g,b]
- Py API: Renaming _owner attribute of mathutils classes to owner.
- Fix some minor errors in mathutils and blf.
- Enabling game engine autoplay again based on a patch by Dalai:
  * The biggest 3D view in the open scene is used, if there is none, blender opens the file normally and raises an error.
  * The 3D view are is made fullscreen.
  * Quad view, header, properties and toolbox panel are all hidden to get the maximum view.
  * If the game engine full screen setting is set, the game starts in fullscreen.
- Fix for ipo conversion on file transition in the game engine.
2010-08-16 12:14:09 +00:00
Joerg Mueller
25fec1592e Audaspace (GSoC): First merging commit
* All audaspace changes from the GSoC branch including the aud Python module
* This commit also includes some minor changes in source/gameengine/Ketsji/KX_PythonInit.cpp:
  - Fixing names of some constants
  - removing outdated stopDSP() python function
  - Autoinclusion of bge instead of GameLogic
  - Fix for some error messages: GameLogic -> bge.logic
2010-08-16 11:41:07 +00:00
Joerg Mueller
2b7a774ab0 svn merge -r 31314:31370 https://svn.blender.org/svnroot/bf-blender/trunk/blender 2010-08-16 09:37:08 +00:00
Campbell Barton
a91d538f47 - commit that removed MEM_guardedalloc.h includes broke building with SSE enabled.
- all C/C++ files in blender are now utf8 compatible.
2010-08-16 09:24:18 +00:00
Campbell Barton
8177a765ab jp2.c has a non-utf8 char which stopped python from reading it, removed unused vars from CMP_chromaMatte.c 2010-08-16 06:38:30 +00:00
Campbell Barton
d1759639dc - remove unused includes IMB_*, BIF_* & MEM_*
- remove MEM_guardedalloc.h from header files (include directly)
2010-08-16 05:46:10 +00:00
Robert Holcomb
e9683f4b26 Fixed bug in normalition of YCbCr color space conversion (from 0..1 to
-1..1) to fix errors in keying.  Simplified chroma key to not take
despill into consideration (handled elsewhere).  Simplified user
interface for pieces not used.
2010-08-15 22:08:49 +00:00
Campbell Barton
e2a6a0b377 change for sorting rna cleaner (was broken), diff's on rna_properties.txt will stop being so big now. 2010-08-15 16:50:58 +00:00
Campbell Barton
3a34d669e1 remove foreach_get/set for rna arrays, was crashing and are only valid for collections. 2010-08-15 16:06:26 +00:00
Campbell Barton
728b713d86 use more BLI math functions. 2010-08-15 15:14:08 +00:00
Campbell Barton
310cc16fd6 more rna naming edits 2010-08-15 12:32:37 +00:00
Campbell Barton
0e7d0cfe2a [#23266] bpy.ops.poselib.browse_interactive - blend_factor argument does nothing
commenting 'blend_factor' for now, its not used.

COLOR and EULER internal pyrna subtypes were causing color type variables to try update euler rotation order.
2010-08-15 12:03:49 +00:00
Brecht Van Lommel
60a8fc3759 Fix #23303: glsl color correction not working correct for image textures. 2010-08-15 09:34:18 +00:00
Brecht Van Lommel
dd9ce7ba04 Fix #23307: accessing FluidParticles.settings causes crash. 2010-08-15 08:53:28 +00:00
Martin Poirier
4959f424b8 [#22831] transform problem with hidden parent object
Partial fix. It now checks if selected parents are modifiable (due to the look up for base, this could get slow, but no other good way to do it).
2010-08-14 17:11:10 +00:00
Campbell Barton
04f619d8af - PyLineSpit() - used to print the filename and line number for internal errors now works when executing class functions in a module.
- replaced PySys_GetObject("modules") with PyImport_GetModuleDict()
- use defaults for keymap import/export rather then setting the same value every time from the UI scripts.
2010-08-14 05:33:20 +00:00
Campbell Barton
5e4ab9fa31 fix for referencing freed memory when freeing an rna property. 2010-08-13 21:49:31 +00:00
Campbell Barton
32792a58e3 bugfix [#22037] OBJ exporter produce wrong UV 2010-08-13 16:59:11 +00:00
Campbell Barton
e12a146a42 bugfix [#22845] Python operators dont free report list 2010-08-13 16:34:21 +00:00
Campbell Barton
96b138d98b added include for offsetof(), also use <string.h>, not "string.h" 2010-08-13 15:26:37 +00:00
Campbell Barton
8e6c654294 [#22884] slow import wavefont/.obj file
- dont run mesh update functions on zero user meshes (a bit of a cheap trick but works well), made in last commit by mistake.
- dont do a scenegraph update on linking an object, run scene.update() after linking objects.
- remove split material option since we have enough slots.
2010-08-13 15:07:57 +00:00
Campbell Barton
f35efbc95a - remove WM_operatortype_exists since its almost the same as WM_operatortype_find
- hopefully fix reported problem with MSVC.
2010-08-13 14:42:45 +00:00
Brecht Van Lommel
ab56b4b5b9 2.5: rendering thread-safety experiment, when setting G.rt to 101, it will
render from a Main database created from the undo buffer. That means extra
memory usage and processing needed, but gives no interference with other
data.

Still won't work entirely since there are a few things that don't get
flushed always (editmode, sculpt, ..) and some places that use globals.
2010-08-13 14:29:56 +00:00
Brecht Van Lommel
0738ae7688 2.5: more removal of G.main. 2010-08-13 14:23:44 +00:00
Joerg Mueller
47d38dbd20 svn merge -r 31211:31313 https://svn.blender.org/svnroot/bf-blender/trunk/blender 2010-08-13 10:50:29 +00:00
Brecht Van Lommel
9ce2086506 Fix #23111: file Output node not working when inside a group. 2010-08-13 10:20:40 +00:00
Brecht Van Lommel
9f4ec50a9a Fix #23244: image save function did not release lock on render
result, causing freeze later.
2010-08-13 09:47:14 +00:00
Campbell Barton
bf52b68dcd minor changes to rna/python.
- raise an exception when python calls is_property_set(name) or is_property_hidden(name) and the property does not exist.
- added BLI_findstring_ptr(), which finds a named item in a listbase where that name is a pointer to a string.
- replaced inline for loops with calls to BLI_findstring_ptr() and IDP_GetPropertyFromGroup().
2010-08-13 06:30:04 +00:00
Dalai Felinto
6317a0006b Fix for [#23286] Text Editor: Cursor not changing shape when insert key is pressed. Patch by Justin Dailey (dail) 2010-08-12 20:42:06 +00:00
Brecht Van Lommel
6faa930369 Fix #23219: smooth view rotating in top view could generate NaN-values,
causing 3d view drawing to break.
2010-08-12 17:48:25 +00:00
Brecht Van Lommel
7019de5e30 Fix #23098: crash in baking, it did a call to BLI_end_threads too much,
causing problems with thread safe malloc after baking once.
2010-08-12 17:13:47 +00:00
Brecht Van Lommel
5fa95f6928 Fix #22777: duplifaces don't take deforming modifiers into account
while in edit mode.
2010-08-12 16:46:03 +00:00
Campbell Barton
9f01264610 bugfix: deleting NLA tracks with a keyframed text3d obdata would free the curve, missing type checks. 2010-08-12 16:39:23 +00:00
Campbell Barton
7c8f1eb04e text editor bugfix, selecting & moving the cursor on lines >256 chars long (was reallocing too little memory). 2010-08-12 15:26:23 +00:00
Brecht Van Lommel
26f0f25c5a Fix #23188: libpng error: Image width or height is zero in IHDR.
The file thumbnail generator would write 0x0 size png's to the .thumbnails/fail
folder. However libpng throws an error when doing this. Instead we now write 1x1
png's, which nautilus seems to be doing as well. The content shouldn't matter
anyway since we won't use it.
2010-08-12 15:15:02 +00:00
Campbell Barton
47f319eb6e text editor, only draw line highlight when its in the view. 2010-08-12 14:49:08 +00:00
Brecht Van Lommel
e81df3a6fa Fix #23238: crash rendering multiple scenes from compositor. 2010-08-12 13:58:10 +00:00
Brecht Van Lommel
150eb890df Fix #23258: paint cursor not working in sculpt/paint modes. 2010-08-12 11:09:19 +00:00
Brecht Van Lommel
982c4c87f7 Fix #23281: crash with multiresolution and uv project. 2010-08-12 10:35:34 +00:00
Brecht Van Lommel
fd0a02ef1b Fix #23235: crash with editmesh instances & drawing, only the object
in object mode should make the editmesh derivedmesh.
2010-08-12 10:17:21 +00:00
Joshua Leung
e2826f379d Small UI Tweak: Added NumPad-0 as additional hotkey for Reset to Default Values. Previously, only ZeroKey (i.e. 0 on top row) was used, which was not very convenient to hit) 2010-08-12 09:50:04 +00:00
Campbell Barton
cf84992cb4 patch [#23280] Generated suffixes of strip names contain random character (revision 31262)
from Torsten Rupp (rupp)
2010-08-12 09:35:39 +00:00
Campbell Barton
6be46efe6c fix for the rna curve interpolation enum, 'ease' was using the same value as Bezier. 2010-08-12 06:28:46 +00:00
Campbell Barton
6827ac7e0d bugfix [#23263] Changing view crashes blender 2010-08-12 03:37:45 +00:00
Campbell Barton
ac133d5d26 bugfix [#23270] Long directory name segmentation fault in File brower
file->relname was being edited when its length allocated at the size of the original name, realloc'ing failed because the old string was still used by a button.
2010-08-12 00:14:32 +00:00
Campbell Barton
aae5c9b58d - possibly bugfix /w uninitialized vars [#23270] Long directory name segmentation fault in File brower.
- in exceptional cases vertcos_to_key() could return with KeyBlock pointing to freed memory.
- invalid use of realloc() in BLI_builddir()
2010-08-11 22:36:43 +00:00
Dalai Felinto
350e6d22fd Logic UI: name mismatch on motion blur property (report and patch by Jacob F.)
I forgot to update the UI code (or to commit) when I changed the rna name to match docs. (0 to 1 values should be called factor)
2010-08-11 21:51:31 +00:00