Blender Git Commits

Blender Git "master" branch commits.

Page: 4664 / 5574

June 24, 2009, 14:03 (GMT)
RNA

* RNA_struct_name_get_alloc function to get the name from a
pointer, instead of having to deal with name property.
* CTX_data_pointer_get_type to get data from context with
a check for the RNA type.

June 24, 2009, 13:44 (GMT)
2.5

Medium sized Color Picker; consisting of number sliders, row buttons to
select rgb/hsv/hex, HS circle and V slider. It opens persistant, like
old picker.

This one opens default, other two can be accessed with ALT or SHIFT click.

On todo;
- eyedropper tool back
- method for click-drag to make mini picker appear

Note for UI coders (brecht :), added a UI_HIDDEN flag in buttons, to
support switching buttons in menus. Hidden buttons are not activated nor
drawn.



Revision e5f6a41 by Joshua Leung
June 24, 2009, 12:50 (GMT)
NLA SoC: Scale Operators - Clear (Alt-S) and Apply (Ctrl-A)

These two operators work only on Action-Clip strips.

* Clear (Alt-S) resets the scale of selected strips to 1.0
* Apply (Ctrl-A) applies the scale of the selected strips to their referenced Actions. If this referenced Action is also used by several other strips, a copy of the Action is made, and the scaling is applied to that Action instead.
Revision 3533cda by Joshua Leung
June 24, 2009, 12:12 (GMT)
NLA SoC: Delete Tracks Operator (XKEY / DELKEY) over the channel list

This deletes all the strips in the relevant (selected) tracks too.
Revision 16f32ec by Joshua Leung
June 24, 2009, 10:48 (GMT)
2.5 - Quick compiling fix for particles-animation commit earlier. For some reason, compilation was broke on some compilers.
Revision e5119ee by Joshua Leung
June 24, 2009, 10:32 (GMT)
NLA SoC: Drawing Tweaks

* Transition tracks are now drawn in a different colour (bluish)

* Action line now shows keyframe indicators for the action it is representing. These are drawn as small empty diamonds to show that they're not directly editable (and never ever will be) via the NLA Editor.
* Action line is also drawn with borders to help differentiate it from the other tracks.

* As an experiment, removed the 'TweakMode' buttons from the header. I had originally added this as a way of indicating that this functionality was there (and to allow for keeping track of it), though it seems to have caused far too much confusion and frustration about 'modality' instead.
Revision db03788 by Joshua Leung
June 24, 2009, 02:11 (GMT)
2.5 - Particle Settings now Animateable

Added AnimData to ParticleSettings so that this will work. This seems to be ok in the brief tests I did, but be warned that this may not be optimal for the Particles System...
Revision 717916c by Joshua Leung
June 24, 2009, 01:41 (GMT)
NLA SoC: Fixes for segfaults during NLA Transforms

The snapping code was incorrectly assuming that td->extra was always AnimData, but for NLA this is incorrect as it is used for special data used for checking back.
Revision 0336c2e by Joshua Leung
June 24, 2009, 01:04 (GMT)
NLA SoC: Fixing a few cases where the wrong flags got used in last night's commit
June 23, 2009, 19:17 (GMT)
Merge from 2.5 r21037 through r21112
June 23, 2009, 18:26 (GMT)
New Style option: Overlap

If this option is enable, the blenfont check for overlap characters, like
one of my previous commit but now it's optional and disable by default.
(This fix the "Fi" or other case when the characters are too close)

Enable/disable from:
Outliner -> User Preferences -> Styles -> Panel Font -> Overlap

(also for other styles, Group Label, Widget, Widget Label)

June 23, 2009, 17:52 (GMT)
- added Mesh.transform
- fixed Object.create_dupli_list
- continuing OBJ exporter conversion
June 23, 2009, 17:30 (GMT)
fix ui issues of space_logic
June 23, 2009, 17:10 (GMT)
modified patch from Arystanbek, allow assigning of mathutils matrix to an rna matrix
June 23, 2009, 17:06 (GMT)
2.5

Removing editors/include export from Make, it's not needed luckily :)

June 23, 2009, 16:57 (GMT)
2.5

Game engine Makefile update.

Note to coders: including BLO_ for only intptr typedef is ehh... not
so nice. But it should not have been added there in first place.
(BLO_ = .blend file read/write). Nice for a future cleanup. :)

Also goes for ED_ includes btw, = bad level call for GE! If you need
it to get things work now, fine, but it will make player impossible.

June 23, 2009, 16:27 (GMT)
Move shadow option (for text) from editor/interface to blenfont.

Two new function:
BLF_shadow: set the level (for blur) and the shadow color.
BLF_shadow_offset: set the x and y offset for shadow.
(this is the current position plus offset)

By default shadow is not enable in the font, so before draw the
text you need call BLF_enable(BLF_SHADOW), also remember disable
the option in the end.

June 23, 2009, 13:34 (GMT)
PyRNA API support for matrix types as Mathutils matrix (with callbacks) rather then a generic rna sequence of floats.

Any 3x3 or 4x4 rna matrix will automatically be returned as a Mathutils matrix.
This makes useful stuff like multiplying a vector location by an object matrix possible.
ob = bpy.data.scenes[0].objects[0]
print (ob.data.verts[0].co * ob.matrix)

Also added mathutils matrix types to the BGE GameObject.localOrientation, worldOrientation

* MT_Matrix3x3 added getValue3x3 and setValue3x3, assumed a 4x3 float array.
* KX_GameObject.cpp convenience functions NodeSetGlobalOrientation, NodeGetLocalOrientation, NodeGetLocalScaling, NodeGetLocalPosition.
* 2.5 python api now initializes modules BGL, Mathutils and Geometry
* modules py3 PyModuleDef's use PyModuleDef_HEAD_INIT, rather then {}, was making msvc fail to build.
* added macros for Vector_ReadCallback, Vector_WriteCallback etc. to check if the callback pointer is set before calling the function.

Revision b4acd77 by Joshua Leung
June 23, 2009, 13:25 (GMT)
NLA SoC: Big Commit - Restored NLA-Mapping Corrections

In TweakMode, the keyframes of the Active Action are now shown (and can be edited) in NLA-mapped time, with appropriate corrections applied when editing. This works in the DopeSheet and Graph Editors :)

To do this, got rid of the old wrappers/API-methods, replacing them with new-style ones. A few methods previously (in this branch) used only for evaluation are now used for this purpose too. As the same code is used for editing + evaluation, this should now be much better to work with.

I've only done a few brief tests now, but I think I might've muddled the invert-flags on one or two cases which I'll need to check out tomorrow. So, beware that there may be some weird and critical bugs for the next few days here...

Also, added proper license headers to new NLA files.


TODO:
- testing + bugfixing due to this commit
- show range of keyframes in NLA Editor active-action line
June 23, 2009, 12:36 (GMT)
small changes...
- allow RNA_property_enum_items to take the totitems int pointer as NULL (spares a loop on all the enum items). this change also makes enums types with no enum array crash in some places, could support these though Id rather disallow them, generating docs is a quick way to test for this.
- open recent file operator used and enum to open the recent file without an enum array, changed to an int type.
- added space_logic.py poll functions

By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021