Commit Graph

20514 Commits

Author SHA1 Message Date
Brecht Van Lommel
17b6dfa499 Bugfix: workaround for spline IK crash with curve path not created
yet, this is actually a depsgraph issue .. so instead of crashing it
will not update correct on file load now.
2009-11-12 15:18:01 +00:00
Campbell Barton
aeca8f6a35 undefined py variable 2009-11-12 15:13:47 +00:00
Campbell Barton
331d1b1b50 sintel's normals were rendering black around her eye.
Subsurf FLT_EPSILON from float.h was too high, using a smaller value fixes
2009-11-12 15:05:51 +00:00
Campbell Barton
9d6787c3e1 rename text3d "str" to "body", (text body), it was also using ID name setting functions which didnt work. 2009-11-12 14:40:09 +00:00
Thomas Dinges
cb7aff89e8 * Minor code cleanup. 2009-11-12 14:37:13 +00:00
Elia Sarti
da799053a0 Use ACTIONMOUSE instead of hardcoded LEFTMOUSE for sequencer's frame scrubbing 2009-11-12 14:31:27 +00:00
William Reynish
bee2335aa0 Implemented suggestion be Matt to slightly tweak the code for single column UI 2009-11-12 13:05:12 +00:00
Campbell Barton
4f47f21d44 small corrections, no functionality change 2009-11-12 12:48:39 +00:00
William Reynish
9596b369bd Added single column UI layouts
This changes the layout when the properties window gets too narrow to render the contents properly. 

Currently implemented for render, scene, world, object and materials, but the rest can be done easily.
Here's a video for demonstration:

http://www.reynish.com/files/blender25/properties_resize.mov

It automatically detects the window width and then skips the indicators that tells the layout to go to the next column. It requires very minimal changes to the UI scripts so we don't have to maintain two versions of the layouts.
2009-11-12 12:35:37 +00:00
Joshua Leung
1df6575074 Spline IK: UI/Scaling Tweaks
* Renamed "Keep Max Length" to "Y Scaling" which has the opposite meaning

* Improved the way that Y-Scaling off behaves. Most of the time, bones that do not fit on the curve are now "blended off" their default rotations instead of being scaled to zero.

* Added option to offset an entire chain by moving the root bone of the chain. This is named "Chain Offset"
2009-11-12 12:20:57 +00:00
Campbell Barton
c53a8105da Project snapping is too slow for sintel's head at subsurf level 2, ifdef'd out per face snapping and added BVH raycasting.
adjust epsilon value for isect_ray_tri_v3()

from the comment...
/* note: these values were 0.000001 in 2.4x but for projection snapping on
 * a human head (1BU==1m), subsurf level 2, this gave many errors */
- 0.000001 -> 0.00000001
2009-11-12 11:45:29 +00:00
Matt Ebb
fa14e50650 Added frame change keymap to node editor 2009-11-12 08:46:41 +00:00
Arystanbek Dyussenov
0adfc00e40 Merged -c 24514 from COLLADA branch (build edges on mesh import). 2009-11-12 03:41:41 +00:00
Matt Ebb
d05f20cb95 * Fix: node editor wasn't updating on tree type change 2009-11-12 01:22:51 +00:00
Matt Ebb
05df56033c * Tweak to button text clipping, now the text label part gets clipped from the right side 2009-11-12 00:48:44 +00:00
Campbell Barton
70a88611ff region width and height readonly rna access (for UI scripts) - see context.region.width/height 2009-11-11 20:42:18 +00:00
Campbell Barton
53250f85db object.constraints.add()/remove()/active, same for PoseChannel
modified internal api for minimal rna wrapper functions.

TODO
- missing updates for pose channels
- typecheck for pose/object constraints
2009-11-11 19:58:30 +00:00
Brecht Van Lommel
047ee04418 Fix for import/export menus, hide collada if it is not compiled in. 2009-11-11 19:12:52 +00:00
Brecht Van Lommel
5b9768d409 Fix tris to quads not working, operator still needs to get properties,
but at least now executes with the defaults.
2009-11-11 18:46:55 +00:00
Brecht Van Lommel
c5b89a2b7a Forgot to include these files in sculpt shape key commit. 2009-11-11 18:31:19 +00:00
Brecht Van Lommel
d70943c40c Fix bug #19864: edge slide factor field is wrong. Setting RNA float
property non-array property as array did not work correct.
2009-11-11 18:30:37 +00:00
Brecht Van Lommel
71c0fbdee1 Fix bug #19762: sculpt does not work with shape keys. 2009-11-11 17:58:37 +00:00
Campbell Barton
f356ea764d - use double underscores to hide members in python (removes them from dir() therefor autocomp.)
- collection functions rename eg. bones_active -> bones__active, add_object -> objects__add since these should be accessed from the collections only.
- fix warnings in last commit
2009-11-11 17:12:48 +00:00
Campbell Barton
bc6190f3e3 python api for collection add()/remove()
Added a group example
 C = bpy.context
 ob = C.active_object
 bpy.data.groups[0].objects.add(ob)

- add_to_group and rem_from_group now take optional scene and base flags and deal with updating the object & base flags
- operators that add objects to groups were setting ob->recalc= OB_RECALC_OB; looks like its not needed.
- previously add() ignored python args, now add and remove are called like any other FunctionRNA from python.
- made the pyrna api use tp_getset's for collestions active/add()/remove()
2009-11-11 16:28:53 +00:00
William Reynish
f243928055 Added some missing theme entries and removed some unused ones. 2009-11-11 16:27:00 +00:00
Thomas Dinges
f76a6020c0 Nodes:
* Added properties operator to the View menu.
* Added Notifier for Node Select Operator, so the new "Active Node" Panel gets refreshed.
2009-11-11 16:02:18 +00:00
Brecht Van Lommel
55a7e73b7d Fix #19368: sculpting with subsurf modifier applied did not update correct.
Fix #19438: sculpt anchored + texture did not center texture correctly.
2009-11-11 15:50:49 +00:00
Brecht Van Lommel
34644821de Fix #19842: timer events incorrectly cancelled tweak events, e.g. when
opening a file browser.
2009-11-11 15:29:22 +00:00
Brecht Van Lommel
9a7099f428 Fix #19834: text edit mode left/right was not work due to frame prev/next. 2009-11-11 14:30:12 +00:00
Brecht Van Lommel
e7f5e70187 Fix #19837: filtering in file browser was missing some common
video file extensions.
2009-11-11 14:05:10 +00:00
Brecht Van Lommel
872a7aeb5a Fix #19313: running python scripts with PyRun_File could
crash on windows due to incompatible FILE struct between
Blender and python library, which is why it was not used
in 2.4x, so apply the same workaround now.
2009-11-11 13:27:54 +00:00
Brecht Van Lommel
1bf387ede1 Bugfix: switching renderlayer in compositing node crashed. 2009-11-11 12:38:22 +00:00
Matt Ebb
52e4b9d020 Fix for [#19781] smoke domain displayed in wire even after removed it
Now it resets back to Shaded display, which still may not be what you want, but there's more chance of it, and it's the default.
2009-11-11 11:49:46 +00:00
Campbell Barton
5bedc65d61 fix for uninitialized variable when circle selecting faces in editmode. (was crashing on release build but not debug for some reason) 2009-11-11 11:29:56 +00:00
Matt Ebb
80e3f0fb3d Fix for [#19562] Little plus icon in upper right missing when opening files from 2.49
Now add the new sub-regions to all 3d views on file open
2009-11-11 10:59:58 +00:00
Joshua Leung
1d84b6bb3c Nodes Editor + other warning fixes:
* Added 'active node' panel for the Nodes Editor. This panel, in the NKEY region, shows the settings for the active node. Included in this panel is a field used for editing the unique-name of the node too. 

* Fixed a number of uninitialised vars warnings that I missed in previous commit...
2009-11-11 10:51:40 +00:00
Matt Ebb
4157e51a25 * Fix for [#19488] Small slider = hidden values
Now number fields use a new method of clipping text when the available space is small:
http://vimeo.com/7545600
2009-11-11 10:27:25 +00:00
Campbell Barton
e4f10565ea recent change shows up incorrect context use: context.bone is not valid in the view3d context. 2009-11-11 10:07:52 +00:00
Joshua Leung
6dcb4ac7a4 * Fixing various compiler warnings under scons+mingw. Mostly unused variables and functions.
* Added missing lib-linking code for Grease Pencil in nodetrees
* Uncommented some code for curve shapekeys
2009-11-11 09:59:51 +00:00
Campbell Barton
5c69f19904 [#19859] Lasso select causing Blender to crash
missing null check in own commit
2009-11-11 09:58:24 +00:00
Campbell Barton
5816912dc1 - In the context, EditBones and Bases were set as 'RNA_UnknownType', replaced with propper types.
- renamed RNA_Base to RNA_ObjectBase
- only include id_data for the python api's autocomplete if it has an ID type set.
2009-11-11 09:16:53 +00:00
Matt Ebb
c0fae59c99 * Fixed nodetree animation by giving nodes unique names
Now the rna path to nodes happens via the node name, which is ensured to be unique via RNA.
As part of this, the node->username string has been removed, upon renaming the node itself it takes care of making sure it's unique (like bones, constraints, etc). There's currently no interactive rename tool, but you can do it via the datablocks editor.

- plus a few notifier tweaks, using the newer NC_NODE notifier to refresh graph editor etc.
2009-11-11 09:11:21 +00:00
Campbell Barton
b2bb9ca39a Mitchell Stokes BGE MouseWarp patch + warning fix
[#19854] [bugfix] Fix for broken Rasterizer mouse functions
---
This patch fixes the embedded player's ability to control the mouse. For example, hiding and unhiding the mouse cursor
did not work in 2.5, nor could the mouse's position be controlled. This was because these parts still needed to be ported
to 2.5 window manager code.
2009-11-11 08:32:29 +00:00
Joshua Leung
1dfc7942d3 Grease Pencil for Nodes Editor:
This commit restores Grease Pencil functionality for the Nodes Editor. Grease Pencil data is now stored at the NodeTree level, which means that annotations remain with the NodeTree they were made for. 

Possible TODO's:
* In future, it may be worth investigating attaching Grease Pencil data to individual nodes, to allow annotations to stay attached to nodes as they are moved
* Include the settings for the 'active node' in a panel in the new NKEY region where the Grease Pencil buttons appear.
2009-11-11 08:12:54 +00:00
Matt Ebb
7206437c72 node warning fixes 2009-11-11 06:01:42 +00:00
Matt Ebb
bf50cc8b39 Added compositing node support to the animation editors
Now when nodes are keyed, they will show up in the dopesheet/graph editor/etc in a new 'Nodetree' category.

Still a major problem left, nodes need unique names in order for the rna paths to hold animation data properly...
2009-11-11 05:03:49 +00:00
Matt Ebb
792c4d602d Fixes for martin's background mode commit - now works fine here on OS X 2009-11-11 04:38:37 +00:00
Martin Poirier
e776ecfdde Background mode in more working conditions.
What works:
The usual command line options for rendering.
All python scripts are loaded (which includes custom properties)
Render engines are loaded and can be used
-P to run scripts works partially: rna api works ok, not operators.

What doesn't: 
Most operator calls in python. This is a problem with poll functions. (Brecht and Campbell are aware of this already)

Changes:
-d now also applied with -b (it was ignored before)
user file (.B25.blend) now also loaded in bg mode. This helps for custom paths and all.
wm is also initialized (it's needed for a lot of context calls)
Ghost, however, is not initialized.
2009-11-11 04:08:09 +00:00
Martin Poirier
f7d7149936 Debug tools: new function MEM_testN(void*)
returns 0 if pointer is not in memlist
2009-11-11 03:45:26 +00:00
Matt Ebb
f0fc007c4b Wrapped node input and output sockets in RNA.
This allows you to set and animate the values of socket inputs and outputs, for example the value node.
It's also a step on the way to manipulating node trees via python (i.e. linking node sockets to each other).

This fixes [#19841] RGB Node in compositor not working
2009-11-11 02:15:09 +00:00