Thomas Dinges [Sun, 7 Jun 2009 15:40:14 +0000 (15:40 +0000)]
2.5 Buttons:
* Small stamp tweaks by William Reynish.
* Moved the modifier tab next to constraints.
Campbell Barton [Sun, 7 Jun 2009 14:53:08 +0000 (14:53 +0000)]
added item_enumO() so python menu items can call enum types with string args.
Example sequencer menu
self.layout.column()
self.layout.item_enumO("SEQUENCER_OT_effect_strip_add", property='type', value='ADD', text="Effect Strip (Add)")
Brecht Van Lommel [Sun, 7 Jun 2009 13:36:12 +0000 (13:36 +0000)]
UI Buttons:
* Context now allows pinning a datablock, independent of
selection.
* Initial ID browse buttons for most buttons tabs.
* Browsing from world to texture now displays world textures
again, but is a bit of a hack, not sure there is a right
way to do this.
* There's a button to switch between active materials and
textures now, only temporary though.
* There's some code to put context part in own region,
disabled still because it doesn't work that well yet.
Thomas Dinges [Sun, 7 Jun 2009 13:35:39 +0000 (13:35 +0000)]
2.5 RNA:
* Some more Notifiers for the world properties.
Brecht Van Lommel [Sun, 7 Jun 2009 13:20:41 +0000 (13:20 +0000)]
UI:
* layout.split() now takes a percentage argument to control
the split position.
* ID template now works for more than just the Text ID type,
includes and icon, and some other fixes.
Ton Roosendaal [Sun, 7 Jun 2009 13:16:31 +0000 (13:16 +0000)]
2.5
Preview renders now re-use a rendered buffer when size is same.
Looks nicer while sliding, and no memory free/allocating.
Brecht Van Lommel [Sun, 7 Jun 2009 13:09:18 +0000 (13:09 +0000)]
RNA:
* Accept None as NULL pointers through python function calls.
* Added type callback for pointers back, it's useful still in
some cases. Made Object.data editable using this, the pointer
type varying based on object type.
* Wrap pin ID pointer in buttons space.
* Added subclasses for text and surface curve ID blocks, to
organize data better and get proper icons.
* Added RNA_type_to_ID_code and ID_code_to_RNA_type functions.
* Update RNA_access.h with new RNA types.
Thomas Dinges [Sun, 7 Jun 2009 12:34:38 +0000 (12:34 +0000)]
2.5 Preview render:
* Added missing redraw tags for lamp and texture.
* Added Texture Notifiers.
Ton Roosendaal [Sun, 7 Jun 2009 12:12:55 +0000 (12:12 +0000)]
2.5
Quick test commit to check on crashing previews; ignore warning about
implicit declaration... here in OSX i can't get this crash!
Thomas Dinges [Sun, 7 Jun 2009 11:42:13 +0000 (11:42 +0000)]
2.5 Preview render
* Added Preview panel to the lamp buttons.
Thomas Dinges [Sun, 7 Jun 2009 11:18:32 +0000 (11:18 +0000)]
2.5 RNA:
* Wrapped some image output settings (Tiff, Cineon, OpenEXR, Jpeg 2000 and DPX)
Ton Roosendaal [Sun, 7 Jun 2009 11:12:55 +0000 (11:12 +0000)]
2.5
New preview.blend
Ton Roosendaal [Sun, 7 Jun 2009 11:12:35 +0000 (11:12 +0000)]
2.5
Nice goodie: Preview renders!
- Added new preview.blend, allowing super wide cinemascope previews
- Draws nicely blended inside widget type, rounded corners
- Preview now renders using all available cpus/cores.
- Uses - hopefully rock stable - method, which doesn't copy or
allocate anything for previews, but just uses render API calls.
- Multiple previews are possible! But, added provision in Jobs
manager to only render one preview job at a time. If you start
more preview jobs, they're suspended until it's their turn.
Bugfix: new buttons context code crashed when going full-window.
Tweaks are still needed for notifiers. I have to figure out still
how to retrieve SpaceButs button view types...
Thomas Dinges [Sat, 6 Jun 2009 22:14:45 +0000 (22:14 +0000)]
Forgot to update this file. Constraints now go into the new constraint tab. :)
Daniel Genrich [Sat, 6 Jun 2009 19:32:18 +0000 (19:32 +0000)]
Bugfix for crash on constraints
Arystanbek Dyussenov [Sat, 6 Jun 2009 17:32:06 +0000 (17:32 +0000)]
Merged code passing context to python operator from soc-2009-kazanbas
branch.
Thomas Dinges [Sat, 6 Jun 2009 16:39:41 +0000 (16:39 +0000)]
2.5 RNA:
* Deleted some wrong properties from the blend mode enum.
Thomas Dinges [Sat, 6 Jun 2009 16:18:19 +0000 (16:18 +0000)]
2.5 Interface:
* Added a constraint tab in the buttons window.
* Added more sequencer buttons (effect strips).
Note: Sequencer buttons will go into the sequencer itself (n-key Panel) later.
* Particle button tweaks by William Reynish. Thanks!
* Some RNA fixes and new properties.
Ton Roosendaal [Sat, 6 Jun 2009 13:35:04 +0000 (13:35 +0000)]
2.5
Several usablity tweaks:
- Search menu allows ScrollWheel to view items
- Tooltip on button on bottom of window showed wrong
- Tooltips were popping up while draggin (MMB) or scrolling
(wheel). Now they stay away.
- Stolen from Gimp (blame venomgfx for hint!): ScrollWheel allows
to go over menu items and use number buttons, only on mouse-over.
Note for devs: the WM_event_add_mousemove() call (to add a fake
event to bring UI back alive after view changes) now works much
more reliably. It ensures the mouse move is only handled after all
notifiers/redraws were done.
Campbell Barton [Sat, 6 Jun 2009 12:48:56 +0000 (12:48 +0000)]
particle buttons gave errors when there was no particle system on an object.
Thomas Dinges [Sat, 6 Jun 2009 11:56:59 +0000 (11:56 +0000)]
2.5 Buttons Window
Bugfix: World Tab wasn't accessible after deleting an object.
Campbell Barton [Sat, 6 Jun 2009 11:34:18 +0000 (11:34 +0000)]
initial support for sequencer UI layout, anyone wants some monkey-work there are quite a few effects panels to do.
- buttons_context_path_sequencer() is a place holder
- ipo_frame_locked renamed to frame_locked
- added scene.sequence_editor.active_strip
Janne Karhu [Fri, 5 Jun 2009 23:59:33 +0000 (23:59 +0000)]
First new particle code:
-Many things not yet working properly :)
-Experimental new (hopefully more logical) categorization of buttons, feedback on this is very welcome.
-Separate render & draw types, for example now there is actually a render option "halo" instead of all the different point draw types.
-Particles get recalculated only from buttons that actually change something that has to be recalculated, for example changing visualization doesn't reset particles any more.
-Boid physics buttons are still missing as I'm currently redoing the whole boids code.
-Point caching is still very wip, so baking is not possible for example, but I added a few cache baking flags for rna that were/will be needed for particle buttons logic.
Campbell Barton [Fri, 5 Jun 2009 19:43:33 +0000 (19:43 +0000)]
fix for printing operator collection values, also set some freed pointers to NULL
Campbell Barton [Fri, 5 Jun 2009 16:11:35 +0000 (16:11 +0000)]
Blender file selector support for setting multiple selected files/dirs which operators can use.
This allows the sequencers Add-Image strip to work like it does in 2.4x.
- as well as setting the "filename" operator property, operators can have collections called "files" and "dirs" which are set when available.
- RNA_OperatorFileListElement as new collection type, its a bit redundant since each item only has a "name" property but its needed since we don't have a string array type.
- the file selector now prints operators it runs.
Tested with python, adding a list of images works to the sequencer works.
bpy.ops.SEQUENCER_OT_image_strip_add(name="MyImages", start_frame=54, channel=2, filename="/somedir/", replace_sel=True, files=[{"name":"test1.png"}, {"name":"test2.png"}])
Ton Roosendaal [Fri, 5 Jun 2009 16:11:18 +0000 (16:11 +0000)]
2.5
Search menu:
- Made nicer drawing for popup version of search. It now uses
entire backdrop like pulldowns.
Search boxes for text buttons will use different style still;
if we use this option all over it shouldn't look too intrusive.
- Search menu allows scroll, to view all items. It doesn't cycle
anymore.
- Click outside search menu now cancels
- If a match is in search button, it highlights it. This also
allows ALT+CTRL+F - Enter to redo last op.
- Search popup draws higher when no no space below. No order
flipping!
Shaul Kedem [Fri, 5 Jun 2009 13:20:42 +0000 (13:20 +0000)]
MSVC cries of uninitialized param
Campbell Barton [Fri, 5 Jun 2009 12:48:58 +0000 (12:48 +0000)]
PyRNA
- Support for python to convert a PyObject into a collection (uses a list of dicts - quite verbose :/)
- Operators can now take collection args when called from python.
- Support for printing operators that use collections (macro recording).
- Added RNA_pointer_as_string which prints all pointer prop values as a python dict.
Example that can run in the in test.py (F7 key)
bpy.ops.VIEW3D_OT_select_lasso(path=[{"loc":(0, 0), "time":0}, {"loc":(1000, 0), "time":0}, {"loc":(1000, 1000), "time":0}], type='SELECT')
for some reason lasso locations always print as 0,0. Need to look into why this is.
Brecht Van Lommel [Fri, 5 Jun 2009 00:39:42 +0000 (00:39 +0000)]
UI:
* Make ESC-key close the search popup menu.
* Also make ESC-key cancel number button dragging.
Andrea Weikert [Thu, 4 Jun 2009 20:07:06 +0000 (20:07 +0000)]
2.5 filebrowser
* code cleanup: removed unused fileselect mode (type)
* brought back 'hide dot files', needs proper storing of the settings still.
Andrea Weikert [Thu, 4 Jun 2009 20:05:08 +0000 (20:05 +0000)]
2.5 MSVC projectfiles
* added file editors/space_buttons/buttons_context.c
* removed BRE_yafray project
Ton Roosendaal [Thu, 4 Jun 2009 18:38:10 +0000 (18:38 +0000)]
2.5
Just a minor tweak in menu draw, makes Search menu a tinsy prettier.
Tomorrow more!
Ton Roosendaal [Thu, 4 Jun 2009 15:19:48 +0000 (15:19 +0000)]
2.5
Bugfix: Icons were drawing on wrong subpixel positions, distorting
badly. Now it's crispy and tasty!
Noticed there's a magnifier icon already, using it for the search
option.
Ton Roosendaal [Thu, 4 Jun 2009 14:32:10 +0000 (14:32 +0000)]
2.5
Two small fixes;
- Search menu options text could overlap with hotkey
- Operator "duplicate area into window" didnt work for non-actionzone
Robin Allen [Thu, 4 Jun 2009 14:11:39 +0000 (14:11 +0000)]
Cleaned up the node wrapping code
Robin Allen [Thu, 4 Jun 2009 13:55:02 +0000 (13:55 +0000)]
All nodes are now wrapped! Some still need limits and extra logic though.
Thomas Dinges [Thu, 4 Jun 2009 11:16:56 +0000 (11:16 +0000)]
2.5 RNA:
* Found more bugs in factor properties.
Thomas Dinges [Thu, 4 Jun 2009 11:05:36 +0000 (11:05 +0000)]
2.5 RNA:
Bugfix: Smooth Modifier didn't accept negative factor values.
Patch by Wahooney. Thanks!
Thomas Dinges [Thu, 4 Jun 2009 10:56:39 +0000 (10:56 +0000)]
2.5 RNA:
* Wrapped some more object force properties.
* Fixed a bug in the field_type_items.
Brecht Van Lommel [Wed, 3 Jun 2009 23:33:56 +0000 (23:33 +0000)]
UI:
* First step for buttons context browsing, read-only still.
* Drawn in a panel now, though this should become a separate region.
* Path of the context is constructed as an array of RNA pointers and
then used for drawing and context lookups from python.
Brecht Van Lommel [Wed, 3 Jun 2009 23:22:43 +0000 (23:22 +0000)]
RNA:
* Added a MaterialSlot collection in Object rather than giving
the list of materials immediately. This should more correctly
reflect how this data is organized, even though there is no
equivalent C struct.
* Added name properties to MaterialSlot/TextureSlot/ParticleSystem.
Brecht Van Lommel [Wed, 3 Jun 2009 23:16:51 +0000 (23:16 +0000)]
UI/RNA:
* Added an icon entry to RNA structs, instead of the UI_GetIconRNA
function, to keep code together a bit more and make the lookup
faster.
Thomas Dinges [Wed, 3 Jun 2009 22:19:04 +0000 (22:19 +0000)]
2.5 RNA:
* Started wrapping object force.
* Added "absorption" property in Collision Modifier RNA.
Ton Roosendaal [Wed, 3 Jun 2009 18:31:37 +0000 (18:31 +0000)]
2.5
Further work on new "text search" button.
- Now allows to browse items (mouse, arrow key)
- Assigns active value
- Uses different backdrop to distinguish from popup menus
- Cleaned API for it, so it can be used nicely generic
Also added a search menu, which shows all currently working
operators: CTRL+ALT+F. (mind the looks, it needs some tweaks!)
To make a menu activating a button I've added a new event...
could use some tweaks.
Important note: the callback to pass on "old string" for text
button (bone rename) couldn't work yet, added first code for new
callback, but has to be worked on further. When bone rename gets
added it can be tested.
Thomas Dinges [Wed, 3 Jun 2009 09:06:32 +0000 (09:06 +0000)]
Cloth Buttons:
Cloth Collision settings dindt't use the new button space context data.
Robin Allen [Wed, 3 Jun 2009 00:40:38 +0000 (00:40 +0000)]
RNA: more compositor nodes wrapped
Brecht Van Lommel [Wed, 3 Jun 2009 00:17:35 +0000 (00:17 +0000)]
UI:
* Add Lamp Fallof Curve and Texture Color Ramp panels.
* Use button space context data.
* A few other minor python layout script updates.
Brecht Van Lommel [Wed, 3 Jun 2009 00:14:12 +0000 (00:14 +0000)]
UI:
* Added initial color ramp and curve mapping templates.
Brecht Van Lommel [Wed, 3 Jun 2009 00:09:30 +0000 (00:09 +0000)]
UI:
* Make modifier and constraint templates use left/right alignment for
buttons in the header.
* Added mdef bind operator as an example of how to use local context
for a modifier, and add some code I forgot to commit last time to
make this system actually work.
Brecht Van Lommel [Wed, 3 Jun 2009 00:04:48 +0000 (00:04 +0000)]
UI:
* Implemented scale_x/scale_y for layouts.
* Implemented left/right/center/expand alignment for row layouts.
Brecht Van Lommel [Wed, 3 Jun 2009 00:01:22 +0000 (00:01 +0000)]
2.5:
* Button space context now includes most data so python code doesn't
have to look it up manually, and to plug-in context browsing later.
Brecht Van Lommel [Tue, 2 Jun 2009 23:56:33 +0000 (23:56 +0000)]
2.5:
* Fix crash adding rigid body constraint.
* Give new nodetrees NT in ID name to make them recognizned by RNA,
even if the nodetrees aren't actual ID datablock.
Brecht Van Lommel [Tue, 2 Jun 2009 23:53:40 +0000 (23:53 +0000)]
RNA
* Fix an issue where the pointer types wasn't always refine
to the most specific type, now RNA_pointer_create also
does this for convenience.
* Make lamp fallof type editable.
Ton Roosendaal [Tue, 2 Jun 2009 18:10:06 +0000 (18:10 +0000)]
2.5
Part one of new text button type: SEARCH_MENU
This opens a popup showing all matches for a typed string, nice
for object names, materials, operators, and so on.
Warning: Currently menu doesn't function yet! Only draws choices.
As test I've added an operator search button in top bar. It only
shows operators that can be used in this context now. Also that
is part of the WIP, tomorrow more fun :)
Ton Roosendaal [Tue, 2 Jun 2009 16:40:15 +0000 (16:40 +0000)]
2.5
Crash; reading NULL pointer in poll() callback for UV edit.
Note: poll() is ONLY for checking context, not for changing things.
Thomas Dinges [Tue, 2 Jun 2009 09:40:24 +0000 (09:40 +0000)]
2.5 Constraints:
Wrapped IK and Rigid Body Joint constraint to Python.
Note: Couldn't test Rigid constraint due to crash.
Matt Ebb [Tue, 2 Jun 2009 08:08:41 +0000 (08:08 +0000)]
Wrapped buttons window in RNA
Ton Roosendaal [Mon, 1 Jun 2009 17:21:03 +0000 (17:21 +0000)]
2.5
- Fix: text draw in fonts was slightly too low; it didn't calculate offset
correctly. Now it is aligned to have number characters in center.
- Fix: text clip was too wide, giving errors on extreme zoom in.
- Added boundbox-clipped default text drawing for view2d:
void UI_view2d_text_cache_rectf(View2D *v2d, rctf *rect, char *str)
(Note; also for previous commit, this cache immediately projects, so if
you change view2d while drawing, text is still on correct positions)
Ton Roosendaal [Mon, 1 Jun 2009 16:22:53 +0000 (16:22 +0000)]
2.5
Added support for cached text drawing in View2D. Cache is needed to
prevent the viewmatrix being set/restored on each text drawing.
Adding a string:
void UI_view2d_text_cache_add(View2D *v2d, float x, float y, char *str)
Drawing:
void UI_view2d_text_cache_draw(ARegion *ar)
Nothing else needed; just make sure cache-draw is always called at end
of a view2d drawing function, to clear cache memory.
On todo for next: a version with a rectf boundary to clip text within.
Ton Roosendaal [Mon, 1 Jun 2009 14:08:19 +0000 (14:08 +0000)]
2.5
Fix for Spin & Screw Mesh edit operators.
- now center and axis are RNA properties for operator
- axis is drawn as Normal button in properties buttons. Fun toy!
Ton Roosendaal [Mon, 1 Jun 2009 12:10:30 +0000 (12:10 +0000)]
2.5
Cleanup commit:
- Yafray removed. Also did cmake/scons files, but didn't compile with it,
so test would be appreciated :)
- Removed old crap from Windows release dir, should be checked on
further by windows release builder later.
Brecht Van Lommel [Mon, 1 Jun 2009 11:39:11 +0000 (11:39 +0000)]
2.5: Added first particle panel, and an RNA property to retrieve
the active particle system.
Ton Roosendaal [Mon, 1 Jun 2009 11:31:06 +0000 (11:31 +0000)]
2.5
Added new widget type in drawing and themes: "Box Backdrop", which is
in use by modifiers. Allows alpha blend, shade, etc.
It was using the general button theme for standard buttons still, to
indicate this change I made it a bit darker. Matt/Bill are invited to
tweak this default color :)
Daniel Genrich [Sun, 31 May 2009 17:20:57 +0000 (17:20 +0000)]
Deform modifiers can now use useRenderParams and isFinalCalc in modifier stack as non-deforming and constructing modifiers can already - please check for problems or if i missed something
Robin Allen [Sun, 31 May 2009 16:45:30 +0000 (16:45 +0000)]
RNA: Wrapped texture nodes, made a start on compo nodes.
Difficult to test, because outliner no longer shows nodetree? (Just a bullet icon)
Thomas Dinges [Sun, 31 May 2009 16:40:28 +0000 (16:40 +0000)]
2.5 Buttons:
* Some world button tweaks by William Reynish. Thanks!
* Quality slider in scene buttons gets hidden again.
Ton Roosendaal [Sun, 31 May 2009 12:47:36 +0000 (12:47 +0000)]
2.5
RNA didn't compile for msvc, variable declaration on wrong place.
Thomas Dinges [Sun, 31 May 2009 11:47:45 +0000 (11:47 +0000)]
2.5 Constraints:
* Wrapped Action Constraint to Python.
* Some layout tweaks by William Reynish.
* Cleaned up the code a bit.
Matt Ebb [Sun, 31 May 2009 01:22:34 +0000 (01:22 +0000)]
* started wrapping 3d view space in RNA
Thomas Dinges [Sat, 30 May 2009 23:31:10 +0000 (23:31 +0000)]
2.5 Constraints:
* Wrapped the constraint layout to python and deleted the corresponding C code.
ToDo: 4 constraints are still C code (IK, Script, Action and Rigid Body Joint)
* Some Constraint RNA fixes.
* Wrapped the Shrinkwrap Constraint in RNA.
Matt Ebb [Sat, 30 May 2009 07:26:45 +0000 (07:26 +0000)]
* fix for resetting window size on builtin b.blend startup.
I think this should work ok for now, but would really appreciate someone who knows the windowmanager code well to take a look at it :)
Matt Ebb [Sat, 30 May 2009 06:23:17 +0000 (06:23 +0000)]
updated outliner header python file, still disabled for now, because there's not a nice way yet to represent the keying sets menu.
Matt Ebb [Sat, 30 May 2009 04:24:10 +0000 (04:24 +0000)]
fix for previous commit, reload startup was freezing
Matt Ebb [Sat, 30 May 2009 04:16:24 +0000 (04:16 +0000)]
* Updated blender 2.5 default setup
Simplified and started from a clean slate, without much of
the hidden existing space data that was hanging around
in the old one.
One issue I found is that saving the startup file from
Blender 2.5 also saves the window size and location.
This means the version I just saved would open up
strangely on other screen sizes/setups. I added code to
reset this to default when loading it up from the version
compiled into the Blender binary, but perhaps Ton/
Brecht might want to check the diff.
Brecht Van Lommel [Fri, 29 May 2009 15:12:31 +0000 (15:12 +0000)]
RNA:
* Added PROP_ID_REFCOUNT flag to control if refcounting should
be done on ID pointer properties. All ID pointers are refcounted,
by default, with the exception of Object, Scene and Text.
* Also made TextureFace image pointer editable, with the special
refcounting behavior.
Thomas Dinges [Fri, 29 May 2009 12:42:06 +0000 (12:42 +0000)]
2.5 Buttons:
* Modifier Button tweaks by William Reynish. Thanks!
Thomas Dinges [Fri, 29 May 2009 09:53:46 +0000 (09:53 +0000)]
2.5 Buttons
* More greying out tweaks by William Reynish and myself.
Thomas Dinges [Fri, 29 May 2009 08:43:44 +0000 (08:43 +0000)]
2.5 Buttons:
* Example code for greying out individual items.
Brecht Van Lommel [Fri, 29 May 2009 00:20:41 +0000 (00:20 +0000)]
2.5: fix crash loading saved file with render result, image user
scene wasn't set to NULL on load. Still doesn't seem entirely safe
but prevents crash here.
Brecht Van Lommel [Thu, 28 May 2009 23:58:18 +0000 (23:58 +0000)]
UI: Matt, check space_outliner.c diff to see how to get python
layouts in a header.
Brecht Van Lommel [Thu, 28 May 2009 23:48:29 +0000 (23:48 +0000)]
2.5: fix text editor issue with scrolling and an invalid memory read.
Brecht Van Lommel [Thu, 28 May 2009 23:45:50 +0000 (23:45 +0000)]
UI:
* Added panels with dummy preview template.
* Added constraints panel for bones next to objects, though it
doesn't work that well yet, the operators and code need to be
changed so they don't assume it is one or the other in/out
of posemode.
* Added some graying out in the scene and world buttons.
Brecht Van Lommel [Thu, 28 May 2009 23:41:12 +0000 (23:41 +0000)]
UI:
* Added a dummy preview render template, to test some layout
engine features on tomorrow.
Brecht Van Lommel [Thu, 28 May 2009 23:37:55 +0000 (23:37 +0000)]
UI:
* Added some properties of uiLayout that can be set. I've added
some API code for more than the two I've implementeds, so
ignore those for now.
* layout.active = False will gray out buttons inside a layout.
* layout.enabled = False will gray out and completely disable
the buttons inside a layout.
* Also some function renames.
Brecht Van Lommel [Thu, 28 May 2009 23:23:47 +0000 (23:23 +0000)]
RNA:
* Automatically do us++ and us-- reference counting in ID pointer
set functions.
* Added an enum property callback to dynamically vary the list of
available items.
* Added some functions to do removes on pointers and collections
runtime defined for RNA and using ID properties.
* Constraints now have owner/target space wrapped, and most
pointers made editable. They can be ported to use python layouts.
* Also other pointers made editable that I think are see now with
the automatic reference counting.
Brecht Van Lommel [Thu, 28 May 2009 23:13:42 +0000 (23:13 +0000)]
Context:
Added a system for adding a "local" context in a UI layout.
This way you can define for example within a modifier panel
all operators to get the modifier in the context.
In the layout code:
uiLayoutSetContextPointer(layout, "modifier", &ptr)
layout.set_context_pointer("modifier", md)
In the operator:
ptr = CTX_data_pointer_get(C, "modifier")
md = context.modifier
Campbell Barton [Thu, 28 May 2009 10:31:56 +0000 (10:31 +0000)]
Needed to cast to a PyObject*
Matt Ebb [Thu, 28 May 2009 05:09:25 +0000 (05:09 +0000)]
* Wrapped outliner space in RNA, and added a python ui file for the header.
Brecht, would you be able to have a look at this if you have time - I can't
figure out how to trigger the python file to register the header instead of
what's in outliner_header.c.
Campbell Barton [Thu, 28 May 2009 02:03:48 +0000 (02:03 +0000)]
rna_define.c, RNA_def_struct - set the py_type to NULL when making an rna struct based on another.
bpy_util.c, PyObSpit - print refcount with PyObject
Joshua Leung [Thu, 28 May 2009 01:57:29 +0000 (01:57 +0000)]
2.5 - Fixes for animating enum values
Interpolation between keyframes for enum values (and booleans) can only be constant now.
TODO:
A way to do this for modifiers is still needed.
Campbell Barton [Wed, 27 May 2009 15:41:44 +0000 (15:41 +0000)]
patch from Andrea Weikert, added some comments.
thanks for looking into this.
Matt Ebb [Wed, 27 May 2009 11:21:34 +0000 (11:21 +0000)]
Reverted last buttons commit after chatting with Thomas :)
note: The new 'Toggle' options in the UI api should be
avoided for normal text buttons, and used sparingly
otherwise. We want to avoid having two inconsistent
appearances for the same type of buttons.
Thomas Dinges [Wed, 27 May 2009 09:37:48 +0000 (09:37 +0000)]
2.5 Buttons:
* Changed some checkboxes into Toggle Buttons.
Joshua Leung [Wed, 27 May 2009 07:28:51 +0000 (07:28 +0000)]
2.5 - Constraint Buttons Layout file
Separated out the code for defining the layout for the constraint targets since its practically the same (with a few minor variations) for all of the other constraints.
Matt Ebb [Wed, 27 May 2009 03:42:51 +0000 (03:42 +0000)]
* Small graphical/gui tweaks to constraint and modifier templates
Brecht Van Lommel [Wed, 27 May 2009 00:03:49 +0000 (00:03 +0000)]
UI:
* Added Constraints template and Add Constraint operator.
* Added toggle=True/False parameter to uiItemR, to get a
toggle button (actual button) rather than an "option"
button (checkbox)
* Added OPTION/OPTIONN button type, to distinguish with
TOG/TOGN.
RNA:
* Make all modifier pointers editable, including correct updates.
* Added notifiers and updates to constraints.
* Fix a stack corruption, pointed out by Andrea, and potentially
causing crashes.
Andrea Weikert [Tue, 26 May 2009 21:34:20 +0000 (21:34 +0000)]
2.5 filebrowser
- some cleanup of ugly conditional.
Andrea Weikert [Tue, 26 May 2009 18:54:39 +0000 (18:54 +0000)]
2.5 MSVC projectfiles update
- file editors/space_image/image_panels.c -> image_buttons.c (renamed)
- file editors/interface/interface_templates.c added
Also added small fix for crash in filebrowser.
Campbell Barton [Tue, 26 May 2009 06:29:15 +0000 (06:29 +0000)]
minor ref-counting changes, means new subclasses will get the correct ref count though there are big problems with this still.
Found that subclassing an RNA struct (without even registering or instancing adds a reference to Py_None).
Unlikely a python bug, tested with py2.6 and 3.1
Matt Ebb [Tue, 26 May 2009 05:12:27 +0000 (05:12 +0000)]
* Tiny cloth panel tweaks