Blender Git Loki

Blenderin Git "master"-kehityshaaran kommitit.

Page: 4801 / 5574

December 26, 2008, 20:39 (GMT)
2.5
* fix some warnings to satisfy scons/msvc
December 26, 2008, 20:38 (GMT)
RNA:
* Added support for using pointers + collections as operator properties,
but with the restriction that they must point to other type derived from
ID property groups. The "add" function for these properties will allocate
a new ID property group and point to that.
* Added support for arrays with type IDP_GROUP in ID properties.
* Fix bug getting/setting float array values.

Example code for collections, note the "OperatorMousePath" type is defined
in rna_wm.c and has a float[2] property named "loc".


Defining the operator property:

prop= RNA_def_property(ot->srna, "path", PROP_COLLECTION, PROP_NONE);
RNA_def_property_struct_runtime(prop, &RNA_OperatorMousePath);


Adding values:

PointerRNA itemptr;
float loc[2] = {1, 1},

RNA_collection_add(op->ptr, "path", &itemptr);
RNA_float_set_array(&itemptr, "loc", loc);


Iterating:

RNA_BEGIN(op->ptr, itemptr, "path") {
float loc[2];

RNA_float_get_array(&itemptr, "loc", loc);
printf("Location: %f %fn", loc[0], loc[1]);
}
RNA_END;

December 26, 2008, 20:25 (GMT)
UI: fix potential crasher in UI panel commit.

December 26, 2008, 19:07 (GMT)
2.5

- Added 3d cursor operator (no exec, waiting for vector property!)
- Added default editor callbacks, for the poll() function.

Example:

ot->poll= ED_operator_view3d_active;

I'll add later more, per module, such as OBJECT_active, which
can be called without WM active

December 26, 2008, 18:15 (GMT)
2.5

Brought back 'smooth view'. Took some hours to untangle it all,
code was spread all over, instead of localized in 1 call. Tsk!
Still not perfect, but at least more in control. For the hackers;
check void smooth_view() in view3d_view.c, here all 3d view
stuff should be handled, so it can optionally use animating.

For the users: 'smooth view' now plays at a maximum of 30 hz,
and doesn't block anymore. So even slow animated views remain
responsive if you press many numpad keys.


December 26, 2008, 18:00 (GMT)
2.5 / Nodes
* fix icon scaling -> SpaceNode aspect.
* bring back a bit more code
December 26, 2008, 17:37 (GMT)
2.5 MSVC9 projectfiles
updates:
* rna_sound.c
December 26, 2008, 16:50 (GMT)
* Added bSound to rna (still need to do bSample and bSoundListener structs)
* rna epy doc-gen was failing when trying to sort None
December 26, 2008, 15:52 (GMT)
2.5 MSVC9 projectfiles
updates:
* new file editors/interface/interface_panel.c
* new files in editors/space_node
* new file editors/space_buttons/buttons_scene.c
* new files in editors/space_script
* new files in editors/object
December 26, 2008, 14:19 (GMT)
2.5: various warning fixes. There was one actual bug in a few different
places, using sprintf with strings like ID names as the format string
(note that this name can contain a % character).

December 26, 2008, 13:50 (GMT)
crash when running operators with no window
December 26, 2008, 13:29 (GMT)
2.5

Timers: added extra 'event type' argument to call to add a timer:
WM_event_add_window_timer(win, event_type, interval)

This way other timer systems don't generate overhead on the queues.
(button timers were creating unused animation-playback operators)

December 26, 2008, 13:11 (GMT)
UI: Panels

* API and usage is basically the same still.
* Panels were moved to region level. I first thought of keeping them at area
level, but having them at region level it's simpler to handle events and do
drawing, and also to integrate with view2d. They can still become area level
overlapping regions, if we make a floating (or docked) region that can
contain panels.
* Added back a few panels from the scene buttons for testing.

Issues still:
* The view2d handling and alignment refresh of panels is not correct yet in the
buttons window.
* I did not yet bring back the block handlers system. It was basically a system
that stored which panel was open and where the events for that panel would go.
Just a few functions, but not sure how it fits in 2.5.
* There was a case where dragging panels would not properly remove the window
level handler, but could not redo anymore even though I don't think I fixed
it.
* Some text in the panels goes past the end of the button, that is due to the
checkmark button drawing, not related to this commit.

Other UI code changes:
* Renamed interface.h to interface_intern.h for consistency.
* Fixed some issues with freeing of blocks when they changed due to context.
* uiDrawBlock now takes a context pointer (mostly for block drawextra).

December 26, 2008, 12:39 (GMT)
removed ED_ prefix from script operator.
python operator api was crashing when unknown operators were called.
December 26, 2008, 12:21 (GMT)
2.5

Operator calls: extended WM_operator_name_call() with options whether to
call the exec() (operate immediate) or invoke() (check user input) entry.

This will allow python to use it more efficiently, but also solves the
dreaded pulldown case that showed another menu for confirmation.

New names to learn: :)
WM_OP_EXEC_DEFAULT
WM_OP_INVOKE_DEFAULT

on todo still: allow hotkey definitions to do same.

Revision 1d17625 by Joshua Leung
December 26, 2008, 11:33 (GMT)
2.5 -

Renaming operators to follow new naming convention set out by Ton
December 26, 2008, 11:32 (GMT)
2.5: fix/workaround for crashes with open recent popup, due
to usage of free'd area/region.

December 26, 2008, 11:11 (GMT)
2.5

- fix Makefile for space_script
- renamed operators for modules i maintain. (stripped ED_)

Revision 34baf51 by Joshua Leung
December 26, 2008, 10:55 (GMT)
2.5 - Action Editor: All Keyframe Selection Tools Ported

User Notes (for using tools whose behaviour has changed):
* Mouse Selection Tools:
1) Click on keyframe to modify its selection. Holding the 'Shift' modifier when doing so, will result in keyframe selection being toggled instead of replacing existing selections.
2) Click on either side of the current frame indicator while holding the 'Alt' modifier. This will select only all the keyframes on the relevant side of the current frame indicator.
3) Click on a keyframe while holding the 'Ctrl' modifier. This will select all the keyframes that fall on that frame.

* Borderselect Tools
1) BKEY selects all the keyframes within the specified range (as per normal)
2) ALT-BKEY will select either all the keyframes in the frame-range specified or the channel range specified, depending on which axis of the select region was larger. This method is prejudiced towards frame-range selection.

Code Notes:
* Finished porting over all of the remaining keyframe selection tools, and recoded the ported ones to make them easier to use (after running into some technical limitations)

* Simplified the way to check if 'animation context' is valid by moving a necessary check into that function.

* Refactored internal keyframe-looping tools to reduce the amount of code needed per tool to edit keyframes, removing a lot of the unnecessary bulk. Now, the ipo/icu_keys_bezier_loop functions recieve a few more arguments (1st arg is pointer to generic customdata, and another defines a validation callback which makes it easier to reuse some of the select callbacks).

* Added 'totrect' adjustment for number of channels being shown in Action Editor, so that scrolling will be limited to where there is data (and also so that scroller displays more relevant context info).
For this to work, filtering channels now returns the number of channels extracted. This may come into use for other tools if there's such a need.

* I still need to port over some code for markers, which is required for some of the tools which use them. For now, those tools do nothing.

* Grease-Pencil editing mode in Action Editor is currently non-functional (code is commented out due to missing dependencies). This is currently pending the re-implementation of Grease Pencil in 2.5
Revision 1dbbffb by Michael Fox
December 26, 2008, 10:31 (GMT)
My very first commit (kinda cool ) just to test my commit rights and to go through the motions of commiting

just a single comment to seperate the ED_VIEW3D_OT_viewnumpad operator code from the rest so its easier to read
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021