Commit Graph

66005 Commits

Author SHA1 Message Date
Campbell Barton
d0dff582a8 dont use the actual scene when registering the class 2009-11-13 08:44:57 +00:00
Joshua Leung
206563241c Bugfix #19871: Extrude does not extrude on normal anymore
Just moving some old commented-out code over from the invoke() callback for extrude to the macro operator.
2009-11-13 01:26:13 +00:00
Joshua Leung
acd7225dea Driver Editing Tweaks:
* Updating dependencies for drivers now clears the disabled status of the relevant Driver FCurve too
* Changing the type of ID-block used for Driver Targets and Keying Set Paths will now clear the pointer to the ID-block if it is of the wrong type.
2009-11-13 01:04:01 +00:00
Joshua Leung
e12f39d116 Spline IK: Fixes for the crashes with non-existant path data that are applied elsewhere 2009-11-12 23:27:33 +00:00
Joshua Leung
6062e434d3 Deselect all for bones works again
It's still very irritating that the active bone pointer doesn't get cleared when this happens, but at least it's more consistent with how Objects work...
2009-11-12 23:12:34 +00:00
William Reynish
4123c1fd7b Made a few more property areas work with a single column.
Also fixed a few minor layout issues.
2009-11-12 21:44:35 +00:00
Martin Poirier
d0c1d182e9 Bug: [#19712] Manipulator widget missing functionality
With help from Patch [#19757] by Michael Jefferies.

-------------

Also, following talks with Matt and Campbell, make pressing Ctrl in transform toggle snap/gears instead of having to hold it down.

Important note: holding it down will no longer work correctly because of key repeats (it will toggle it constantly). It's possible to edit the modal keymap to bring back the old behavior (perhaps it should even be default).
2009-11-12 19:49:26 +00:00
Martin Poirier
20681f4980 Shift click on modifier works again.
For some reason, adding a keymap entry with KM_SHIFT didn't work, had to use KM_ANY and passthrough invalid modifiers.

Left a note to investigate later.
2009-11-12 19:42:53 +00:00
Chris Want
6c1a7a9a2d == Blender 2.4x ==
Removed highly annoying "recalc data OBxxxx" debug print.
2009-11-12 18:35:26 +00:00
Arystanbek Dyussenov
fdcc0ff7c7 Merge -c 24531 from COLLADA branch (fix holes in imported meshes). 2009-11-12 17:08:32 +00:00
Campbell Barton
8f80297832 generating docs can make the rna api generate wrnings (which is fine)
but was giving python decoding errors and didnt even show the warning.

for now just print to the console fixes this
2009-11-12 15:46:45 +00:00
Arystanbek Dyussenov
b093e12584 COLLADA importer:
* no more holes in imported meshes (I hope so) - test/fix face indices with test_index_face on mesh import. Thanks Brecht for pointing this out!
* cleanup triangulation code. Polygon triangulation (using filldisplist) can result in flipped faces (for example http://www.pasteall.org/pic/117 (textured shading) and http://www.pasteall.org/pic/118 (solid shading)). Don't know how to fix this (flipping the order of produced triangles results in other faces being flipped)...
2009-11-12 15:45:08 +00:00
William Reynish
fbb2c38485 Implemented single column UI for textures, curve, mesh and empty.
Reverted 24524 materials change because it it made greying out not work correctly.
2009-11-12 15:41:44 +00:00
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
Arystanbek Dyussenov
b42fa5da93 COLLADA: merge from trunk -r 24390:24522. 2009-11-12 14:49:54 +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
Arystanbek Dyussenov
e637320198 COLLADA: call make_edges on mesh import. This may cause some meshes appear without a few faces, unclear why this happens. 2009-11-12 03:36:40 +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