Brecht Van Lommel [Wed, 24 Jun 2009 21:27:10 +0000 (21:27 +0000)]
2.5: File Selector: display operator properties in the side region,
check Save Image or Export PLY operator for example.
Also these code changes:
* Added some RNA collection iterator macros to simplify code.
* Fix bpy.props.BoolProperty not working correct.
* Merge uiDefAutoButsRNA/uiDefAutoButsRNA_single into one.
Brecht Van Lommel [Wed, 24 Jun 2009 18:39:00 +0000 (18:39 +0000)]
2.5: bug fixes for some erratice materials buttons drawing.
Ton Roosendaal [Wed, 24 Jun 2009 17:57:10 +0000 (17:57 +0000)]
2.5
Bugfix: added refresh for modifiers for enable/disable
Ton Roosendaal [Wed, 24 Jun 2009 17:22:22 +0000 (17:22 +0000)]
2.5
- Added ND_SHADING notifier on linking materials, so it gives
refreshes in UI
- Removed reduntant debug prints
Crucial fixes in other code while checking warnings;
- Particle buttons were assigned to short, whilst data was int
- Filesel border select used float rect API, on an int rect.
Ton Roosendaal [Wed, 24 Jun 2009 16:44:54 +0000 (16:44 +0000)]
2.5
Added support for icons in search menu.
It already displays icons for saved materials etc. from old files.
Have to add previewrenders for this still.
Brecht Van Lommel [Wed, 24 Jun 2009 14:16:56 +0000 (14:16 +0000)]
UI
* Added SCROLL button type, use like a NUMSLI basically, with
a1 used to define the scroller size.
* Add scroll and toggle colors to the Theme (toggle was set to
draw like radio in a recent commit, but it's the intention
these look different).
* Added rudimentary list template, used for object material
slots, this is WIP though.
* In popup menu, split text with line breaks over multiple
lines, makes python errors display slightly nicer.
Brecht Van Lommel [Wed, 24 Jun 2009 14:07:48 +0000 (14:07 +0000)]
2.5: Object material slot operators add/remove/assign/select/deselect.
Brecht Van Lommel [Wed, 24 Jun 2009 14:03:55 +0000 (14:03 +0000)]
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.
Ton Roosendaal [Wed, 24 Jun 2009 13:44:19 +0000 (13:44 +0000)]
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.
Joshua Leung [Wed, 24 Jun 2009 10:48:37 +0000 (10:48 +0000)]
2.5 - Quick compiling fix for particles-animation commit earlier. For some reason, compilation was broke on some compilers.
Joshua Leung [Wed, 24 Jun 2009 02:11:36 +0000 (02:11 +0000)]
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...
Diego Borghetti [Tue, 23 Jun 2009 18:26:01 +0000 (18:26 +0000)]
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)
Hamed Zaghaghi [Tue, 23 Jun 2009 17:30:18 +0000 (17:30 +0000)]
fix ui issues of space_logic
Campbell Barton [Tue, 23 Jun 2009 17:10:46 +0000 (17:10 +0000)]
modified patch from Arystanbek, allow assigning of mathutils matrix to an rna matrix
Ton Roosendaal [Tue, 23 Jun 2009 17:06:46 +0000 (17:06 +0000)]
2.5
Removing editors/include export from Make, it's not needed luckily :)
Ton Roosendaal [Tue, 23 Jun 2009 16:57:46 +0000 (16:57 +0000)]
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.
Diego Borghetti [Tue, 23 Jun 2009 16:27:35 +0000 (16:27 +0000)]
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.
Campbell Barton [Tue, 23 Jun 2009 13:34:45 +0000 (13:34 +0000)]
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.
Campbell Barton [Tue, 23 Jun 2009 12:36:15 +0000 (12:36 +0000)]
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
Joshua Leung [Tue, 23 Jun 2009 11:28:48 +0000 (11:28 +0000)]
2.5 - Icons for Modifiers in Modifier Template
As per William's mockup - http://www.reynish.com/files/blender25/modifiers.png
Thomas Dinges [Tue, 23 Jun 2009 11:16:27 +0000 (11:16 +0000)]
2.5 Icons:
* Added lamp icons.
Thomas Dinges [Tue, 23 Jun 2009 11:00:35 +0000 (11:00 +0000)]
2.5 Icons:
* Modifier Icons are now shown in the add modifier menu.
Brecht Van Lommel [Tue, 23 Jun 2009 00:45:41 +0000 (00:45 +0000)]
2.5: Image Editor
* Menu and header more complete now.
* Clean up Game Properties panel and moved View Properties panel
to python.
* Fix some drawing issues when combining tiles, repeat and aspect,
some also from 2.4x, these options didn't work together 100%.
Brecht Van Lommel [Tue, 23 Jun 2009 00:41:55 +0000 (00:41 +0000)]
2.5: Tool Settings
* Moved proportional edit, snap, autokey mode, and a few others
from Scene to ToolSettings.
* RNA wrapped properties in ToolSettings for the UV editor:
proportional edit, snap settings, selection modes.
Brecht Van Lommel [Tue, 23 Jun 2009 00:19:10 +0000 (00:19 +0000)]
UI: some API functions don't require explicit context passing anymore.
Guillermo S. Romero [Tue, 23 Jun 2009 00:09:26 +0000 (00:09 +0000)]
SVN maintenance.
Brecht Van Lommel [Mon, 22 Jun 2009 23:58:16 +0000 (23:58 +0000)]
UI
* Make Directional Order menus the default again.
* Scale up contents panels that do not use layout system.
* Fix for enum size and uncesseray colon in some cases.
* For item_menu_enumO, show icons if specified in RNA in
the menu (e.g. in the add modifier menu if there were
icons specified).
Andrea Weikert [Mon, 22 Jun 2009 22:39:28 +0000 (22:39 +0000)]
2.5 MSVC9 projectfiles
* RNA: move of rna_*_api.c files
* removed deleted projects ODE, SUMO etc.
* Added new files to editors/space_logic
Campbell Barton [Mon, 22 Jun 2009 22:32:00 +0000 (22:32 +0000)]
removing files that should not be in blender2.5, added (by mistake?) r19226
Brecht Van Lommel [Mon, 22 Jun 2009 18:19:18 +0000 (18:19 +0000)]
2.5: warning fixes
Mostly harmless ones, except for one about "gzopen64" being
undeclared. This needs some defines in BLI_storage.h to be set
before <unistd.h> is included. Might fix a crash in compressed
file reading, though I'm not sure since it's hard to repeat
the crash consistently.
Campbell Barton [Mon, 22 Jun 2009 04:26:48 +0000 (04:26 +0000)]
PyAPI Mathutils Vector callbacks, referencing other PyObjects rather then thin wrapping vectors which is crash prone.
in short, vectors can work as if they are thin wrapped but not crash blender if the original data is removed.
* RNA vector's return Mathutils vector types.
* BGE vectors for GameObject's localPosition, worldPosition, localPosition, localScale, worldScale, localInertia.
* Comment USE_MATHUTILS define to disable returning vectors.
Example...
* 2.49... *
loc = gameOb.worldPosition
loc[1] = 0
gameOb.worldPosition = loc
* With vectors... *
gameOb.worldPosition[1] = 0
* But this wont crash... *
loc = gameOb.worldPosition
gameOb.endObject()
loc[1] = 0 # will raise an error that the objects removed.
This breaks games which assume return values are lists.
Will add this to eulers, matrix and quaternion types later.
Nicholas Bishop [Sun, 21 Jun 2009 18:59:26 +0000 (18:59 +0000)]
2.5/Sculpt:
Fixed the Lock X/Y/Z buttons for sculpt, should work for all brushes now.
Nicholas Bishop [Sun, 21 Jun 2009 17:04:17 +0000 (17:04 +0000)]
2.5/Sculpt:
Some improvements to the layer brush; the displacement is now tied to brush size, like for draw and inflate.
Fixes for layer brush in subtract mode and anchor mode.
Campbell Barton [Sun, 21 Jun 2009 17:03:17 +0000 (17:03 +0000)]
more corrections from cleanup :/
Campbell Barton [Sun, 21 Jun 2009 16:58:22 +0000 (16:58 +0000)]
remove support for videoscape, amiga 3D app that came before lightwave.
Campbell Barton [Sun, 21 Jun 2009 16:18:38 +0000 (16:18 +0000)]
Spring Cleaning
* removed radiosity render code, DNA and RNA (left in radio render pass options), we'll get GI to replace this probably, better allow baking to vertex colors for people who used this.
* removed deprecated solid physics library, sumo integrations and qhull, a dependency
* removed ODE, was no longer being build or supported
* remove BEOS and AMIGA defines and references in Makefiles.
Nicholas Bishop [Sun, 21 Jun 2009 15:59:43 +0000 (15:59 +0000)]
2.5/Sculpt:
Fixed bug where anchor brush would leave messed up normals (was related to using face normals, not vertex normals.)
Campbell Barton [Sun, 21 Jun 2009 14:30:59 +0000 (14:30 +0000)]
RNA read-only wrapped wmEvent so python operators invoke functions
* 2 new enums event_value_items and event_type_items in RNA_enum_types.h
* WM_key_event_string now uses an RNA enum lookup rather then its own switch statement.
* moved wmEvent from WM_types.h into DNA_windowmanager_types.h
* added RNA_enum_identifier and RNA_enum_name to get strings from an enum value.
Janne Karhu [Sun, 21 Jun 2009 11:09:16 +0000 (11:09 +0000)]
Particle system parenting
* Allows moving, rotating & scaling of particle simulations.
* Setting in particle render options.
* Changes viewed & rendered particles from global space to parent space.
* Doesn't effect simulations at all.
Thomas Dinges [Sun, 21 Jun 2009 10:26:39 +0000 (10:26 +0000)]
2.5 Buttons Window:
* WIP Commit: Started wrapping the buttons header to python. Still disabled due to some display problems.
Janne Karhu [Sun, 21 Jun 2009 10:16:52 +0000 (10:16 +0000)]
Pointcache refresh part 1:
* Particles support larger than 1 frame changes, bigger frame changes can result in inaccurate results, but it's super fast and you get a nice feeling of how the particles behave!
* "Cache to current frame" button calculates the exact result of particles at current frame.
* Current state of cache can be protected by making it a bake.
* Cache is now in memory by default, disk cache is an option.
* Only "viewport %" number of particles are calculated and cached in viewport, baking and rendering calculate all particles.
* Info on cached frames and memory usage given in ui.
* Support for exact "autocaching" of changes and large frame changes(disabled for now until exact place in event system is decided)
* "Continue physics" is probably deprecated after this and should be removed once sb & cloth use the new cache code.
Todo:
* Make softbody & cloth use the new cache things.
Other changes:
* Some cleanup of particle buttons.
Nicholas Bishop [Sun, 21 Jun 2009 03:34:30 +0000 (03:34 +0000)]
2.5/Sculpt:
Fix for the poll used for the operator to set the brush curve to a preset. The 3 brush curve presets in the Sculpt menu are now functional.
Nicholas Bishop [Sun, 21 Jun 2009 02:51:42 +0000 (02:51 +0000)]
2.5/Multires:
Bugfix for loading older files with the pre-modifier multires.
Joshua Leung [Sun, 21 Jun 2009 00:17:45 +0000 (00:17 +0000)]
2.5 - Fixed error with Constraint Buttons
Incorrectly declared icon was resulting in very verbose warning output in the console...
Nicholas Bishop [Sat, 20 Jun 2009 20:29:25 +0000 (20:29 +0000)]
2.5/Sculpt:
Added a clay brush. It behaves like a combination of the flatten and draw brushes.
Credit to Fredrik Hannson for the original patch (#18666)
Campbell Barton [Sat, 20 Jun 2009 16:08:01 +0000 (16:08 +0000)]
PLY export, use the file selector and added operator options
Brecht Van Lommel [Sat, 20 Jun 2009 15:06:18 +0000 (15:06 +0000)]
RNA: added MeshVertex.normal.
Brecht Van Lommel [Sat, 20 Jun 2009 14:55:28 +0000 (14:55 +0000)]
Context
Python dir(context) now gives the items from the data context
too, modified context callbacks to also return a list of items
in the context.
Brecht Van Lommel [Sat, 20 Jun 2009 14:53:30 +0000 (14:53 +0000)]
2.5: fix for crash in BLI_dynstr_appendf, each vsnprintf call
apparently needs its own va_start/va_end.
Campbell Barton [Sat, 20 Jun 2009 14:01:34 +0000 (14:01 +0000)]
updated the ply exporter to use the blender 2.5 python api
Note's
* exports the mesh without modifiers or transformations applied
* supports UV's vertex colors
* no support for normals yet (missing from data api)
* registers an operator called EXPORT_OT_ply
* no file selector yet. can only fun from python currently
bpy.ops.EXPORT_OT_ply(filename="/tmp/test.ply")
* removed double lookups on the vertex dict, build face verts to write allong the way.
Campbell Barton [Sat, 20 Jun 2009 13:55:47 +0000 (13:55 +0000)]
moving the existing ply exporter into io before updating (to get a useful diff)
Campbell Barton [Sat, 20 Jun 2009 13:53:14 +0000 (13:53 +0000)]
RNA Fixes
* Python apis iterator didnt work, for example [f for f in mesh.faces] # failed.
* Python apis collection.items(), collections without names now return (index,value) pairs, better then returning nothing.
* bpy.ui and bpy.props modules were incorrectly named
* Mesh vertex colors red/blue needed to be swapped on getting/setting.
* Mesh vertex colors were not clamped.
Campbell Barton [Sat, 20 Jun 2009 06:06:13 +0000 (06:06 +0000)]
game logic UI script, physics could be broken up into more panels.
Campbell Barton [Sat, 20 Jun 2009 02:44:57 +0000 (02:44 +0000)]
ObColor wasnt converted into an RNA string.
Updated Mathutils.Vector/Euler/Quaternion/Matrix so these are types rather then module methods, each type now has a tp_new function, matching python builtins float/int/str.
Also cleaned up float conversion and arg passing.
Changed buttons_objects.py...
if ob in groups.objects: # no longer works
if ob.name in groups.objects: # is the new syntax
...its more dict like and a lot faster (avoids python iterating over each item and comparing each, use a single rna lookup instead).
Brecht Van Lommel [Fri, 19 Jun 2009 23:11:41 +0000 (23:11 +0000)]
UI
* Fix issue with panel header line not always being hidden
for the first panel.
* Fix graying out of aligned buttons being off by one pixel,
did not find a nice solution for it though, so just added
-1/+1 in the code.
Brecht Van Lommel [Fri, 19 Jun 2009 23:05:21 +0000 (23:05 +0000)]
2.5
* Optimized RNA property lookups and path resolving, still can be
much better, but now the 1000 IPO example on bf-taskforce25
runs at reasonable speed.
* Also an optimization in the depsgraph when dealing with many
objects, this was actually also a bottleneck here.
Nicholas Bishop [Fri, 19 Jun 2009 22:16:30 +0000 (22:16 +0000)]
2.5/Sculpt:
Made some improvements to how brush strength works.
* For the draw and inflate brushes, the brush's 3D radius is used to set the "goal" distance, towards which vertices move. A strength setting of 1.0 will move verts there immediately (with the usual exceptions of tablet pressure, texture/curve input, etc.)
* Also changed strength calculation to use the square of the strength slider, so that you don't have to be as finicky setting a low brush strength.
* For smooth brush, added an extra loop through the verts. So, a bit slower, but now verts take into account more than the immediate vertex ring.
TODO:
Still some magic numbers:
* Pinch limits the effect to moving vertices half of the way towards brush center. I see no use for a 100% pinch (it pretty much destroys the mesh.) Even half may be too high a limit, but this is hard to place an exact number on.
* Smooth has two magic numbers, the strength fudge factor and the number of smooth repetitions (currently 2.)
* The way the layer brush works is left unchanged for now.
Campbell Barton [Fri, 19 Jun 2009 16:27:01 +0000 (16:27 +0000)]
BGE: allow action blending by bringing back blend_poses() as game_blend_poses, the new animation system doesnt use it but doesnt have a replacement function so it can be kept for the BGE only.
Brecht Van Lommel [Fri, 19 Jun 2009 14:56:49 +0000 (14:56 +0000)]
RNA:
* EditBone wrapped, using manual get/set function, and used
in the UI code. Makes the RNA wrapping code here more
complicated, but works.
Joshua Leung [Fri, 19 Jun 2009 11:17:56 +0000 (11:17 +0000)]
Animato - Conversions Bugfix
Object actions are now converted before object ipo's so that if both of them exist, the Action can still preserve its name.
Daniel Genrich [Fri, 19 Jun 2009 09:21:08 +0000 (09:21 +0000)]
Bugfix: Displace modifier was missing the "direction" drop down menu.
Campbell Barton [Thu, 18 Jun 2009 23:12:29 +0000 (23:12 +0000)]
Update Mathutils for py3k
* removed coercing types which has been removed from py3.
* matrix uses getset's rather then getset items.
* removed deprecated functions.
Daniel Genrich [Thu, 18 Jun 2009 21:25:21 +0000 (21:25 +0000)]
Fix for compiler error since BLO_sys_types.h was not in the path
Diego Borghetti [Thu, 18 Jun 2009 20:45:58 +0000 (20:45 +0000)]
Revert a small change to kerning, Matt please let me know if now it's fine (or like before).
Martin Poirier [Thu, 18 Jun 2009 20:23:46 +0000 (20:23 +0000)]
don't include stdint.h directly, it's broken on non C99 compliant compilers (you know which one I'm talking about).
Martin Poirier [Thu, 18 Jun 2009 20:13:17 +0000 (20:13 +0000)]
2.5
Missing { when WITH_LCMS is defined.
Brecht Van Lommel [Thu, 18 Jun 2009 19:51:22 +0000 (19:51 +0000)]
2.5 Python
Merging changes made by Arystanbek in the soc-2009-kazanbas branch,
plus some things modified and added by me.
* Operator exec is called execute in python now, due to conflicts
with python exec keyword.
* Operator invoke/execute now get context argument.
* Fix crash executing operators due to bpy_import_main_set not being
set with Main pointer.
* The bpy.props module now has the FloatProperty/IntProperty/
StringProperty/BoolProperty functions to define RNA properties for
operators.
* Operators now have an __operator__ property to get the actual RNA
operator pointers, this is only temporary though.
* bpy.ops.add now allows the operator to be already registered, it
will simply overwrite the existing one.
* Both the ui and io directories are now scanned and run on startup.
Brecht Van Lommel [Thu, 18 Jun 2009 19:48:55 +0000 (19:48 +0000)]
RNA
Merging changes made by Arystanbek in the soc-2009-kazanbas branch,
plus some things modified and added by me.
* The API files now all in the makesrna module, convention is to
call them e.g. rna_mesh_api.c for rna_mesh.c. Note for visual
studio build maintainers, the rna_*_api.c files are compiled as
part of "makesrna", but do not have rna_*_gen.c generated as part
of the library. SCons/cmake/make were updated.
* Added function flags FUNC_USE_CONTEXT and FUNC_USE_REPORTS, to
allow RNA functions to get context and error reporting parameters
optionally. Renamed FUNC_TYPESTATIC to FUNC_NO_SELF.
* RNA collections now have a pointer to add/remove FunctionRNA's, this
isn't actually used anywhere yet, purpose is to make an alias
main.meshes.add() for main.add_mesh() in python.
* Fixes to make autogenerating property set/get for multidimensional
arrays work, though a 4x4 matrix will be exposed as a length 16
one dimensional RNA array.
* Functions and properties added:
* Main.add_mesh()
* Main.remove_mesh()
* Object.matrix
* Object.create_render_mesh()
* WindowManager.add_fileselect()
Brecht Van Lommel [Thu, 18 Jun 2009 19:25:58 +0000 (19:25 +0000)]
2.5
* Update cmake and makefiles to link python generic.
* Fix game engine building for cmake and makefiles.
* Fix compile error with py 3.x, due to 2.x compat fix.
Campbell Barton [Thu, 18 Jun 2009 17:34:39 +0000 (17:34 +0000)]
fix for building with py2.3
Daniel Genrich [Thu, 18 Jun 2009 15:33:58 +0000 (15:33 +0000)]
Fixing gl/glw.h compiiler error
Ton Roosendaal [Thu, 18 Jun 2009 15:31:14 +0000 (15:31 +0000)]
Added Make for new python/generic dir.
Also included GLEW.
Brecht Van Lommel [Thu, 18 Jun 2009 14:29:24 +0000 (14:29 +0000)]
RNA:
* Make cloth settings animateable from buttons.
Brecht Van Lommel [Thu, 18 Jun 2009 14:20:25 +0000 (14:20 +0000)]
UI:
* Fix context.cloth, was not being set correct.
* Fix errors with context pinning, scripts should
not assume context.object to be there.
* Always show preview even if e.g. the material is not
set, to keep ID buttons from jumping while you're
using them.
Campbell Barton [Thu, 18 Jun 2009 04:36:45 +0000 (04:36 +0000)]
build generic modules in their own lib, compiling without the game engine would fail because bpy_internal_import.c wasnt being included.
(scons only)
Campbell Barton [Wed, 17 Jun 2009 20:33:34 +0000 (20:33 +0000)]
Some generic modules from blender 2.4x building with py3k and mostly working.
* Mathutils, Geometry, BGL, Mostly working, some //XXX comments for things to fix with py3
python import override (bpy_internal_import.c) so you can import python internal scripts from the BGE and running blender normally.
Guillermo S. Romero [Wed, 17 Jun 2009 19:46:39 +0000 (19:46 +0000)]
Fix mask in arrow cursor and improve swap one.
Ton Roosendaal [Wed, 17 Jun 2009 11:01:05 +0000 (11:01 +0000)]
2.5
Logic editing back!
Test screenie:
http://download.blender.org/institute/rt9.jpg
I gave the buttons a bit more width, added nicer linkline draw.
Not working yet:
- theme colors for sensor/actuator types (was old button colors)
- moving sensors up/down (used bad pupmenu... better is icons like
used for modifiers)
- Linkline mouse-over select. Currently deleting a link goes by
drawing the same line again.
Needs to be fully tested for functionality too, leave that to the GE
department. :)
I noted there's bad button hacking with reading button values,
like check_state_mask(). uiBut structure was not meant to be exported
outside of interface module.
Campbell Barton [Tue, 16 Jun 2009 20:38:18 +0000 (20:38 +0000)]
ActionActuator in the game engine working again to display deformed meshes with the new animation system.
Note that the animation conversion from existing 2.4x blend files doesnt yet set the Action pointer in the actuator so the only way to test is to use the python api to set the new converted action active on the actuator because there is no user interface.
Campbell Barton [Tue, 16 Jun 2009 19:51:58 +0000 (19:51 +0000)]
small merge needed for testing new animsys in 2.5 BGE, mixing own changes with merge can be a hassle.
svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r20928:20937
Campbell Barton [Tue, 16 Jun 2009 18:25:48 +0000 (18:25 +0000)]
BGE Action Actuator setChannel() function was broken in a number of ways.
* extract_pose_from_pose only checked one of the list items for NULL when looping over them yet its possible they are different sizes.
* game_free_pose needed to be used rather then MEM_freeN, channels would never be freed leaking memory.
* setChannel() would make a new pose that wasnt aligned with the existing pose, the lists are assumed aligned so when extracting the channels its unlikely this was ever useful.
* Added getChannel() - returns pose loc/size/quat
* Added option args for setChannel(channel, matrix) or setChannel(channel, loc, size, quat)
Campbell Barton [Tue, 16 Jun 2009 15:44:08 +0000 (15:44 +0000)]
looks like a mistake. should check with the scene render size, not the current scenes.
Campbell Barton [Tue, 16 Jun 2009 15:04:29 +0000 (15:04 +0000)]
changes to the sequencer in trunk between 20855:20928, (excluding UI changes)
had to //XXX comment some funcs.
Campbell Barton [Tue, 16 Jun 2009 14:21:58 +0000 (14:21 +0000)]
svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r20855:20928
Sequencer changes from source/blender/src coming next
Ton Roosendaal [Tue, 16 Jun 2009 13:09:36 +0000 (13:09 +0000)]
2.5
Added SpaceLogic, to restore the old logic buttons into.
In future it can be used for a more advanced logic editor, with
states, behaviour, whatever. We'll see!
This commit only adds the backend for new space. Committed this
now as reference for when we need another space type. It's still
not well plugin-able (dynamic space types), but my idea is to just
have a new SpacePlugIn for this, with a neat small API to define
all relevant callbacks.
Also note the icon for the spacetype is wrong still.
Thomas Dinges [Tue, 16 Jun 2009 12:54:34 +0000 (12:54 +0000)]
2.5 Material Buttons:
* More tweaks by William. Thanks.
Remigiusz Fiedler [Tue, 16 Jun 2009 10:43:43 +0000 (10:43 +0000)]
DXF-export update: dxfLibrary.py v1.33 - 2009.06.16
- fix _point(): converts all coords to floats
- fix LineType class: implement elements
- added VPORT class, incl. defaults
- fix Insert class
Campbell Barton [Tue, 16 Jun 2009 08:52:04 +0000 (08:52 +0000)]
KX_PythonSeq (used for a number of BGE sequence types)
* cont.actuators.get("key", default) # dict like get function
* if "key" in cont.sensors: ...
Updated docs
Added missing include to Particle.c
Campbell Barton [Tue, 16 Jun 2009 07:16:51 +0000 (07:16 +0000)]
BGE Py API
* Removed modules Expression and CValue, neither were ever available.
* Added GameLogic.EvalExpression(exp) from the Expression module, evaluates an expression like the expression controller (not sure if this is really that useful since python is far more advanced).
* resetting the original blend file path didint work (own fault == -> =)
* Py3.x PyModule_Create didnt allow importing since it didn't add to sys.modules,
Looks like they want us to use init-tab array, but this doesn't suit us since
it needs to be setup before python is initialized.
* Documented GameLogic.globalDict
Dalai Felinto [Tue, 16 Jun 2009 03:27:57 +0000 (03:27 +0000)]
MSVC fix for rev. #20909 (reported/patched by moguri)
Guillermo S. Romero [Tue, 16 Jun 2009 02:40:39 +0000 (02:40 +0000)]
Separate "content reordering" from "plain menus".
Matt Ebb [Tue, 16 Jun 2009 01:51:51 +0000 (01:51 +0000)]
small fix: ao energy is not a percentage
Brecht Van Lommel [Tue, 16 Jun 2009 01:32:33 +0000 (01:32 +0000)]
UI:
Revert revision #20879:
Enable non reordering menus option, it was disabled without explanation (?).
This changed the order of all header menus with the header at the bottom,
this doesn't seem acceptable to me. Additionaly, it doesn't make sense to
me that this would be the same option as the toolbox shape, they should be
separate options.
Here's the rationale from 2005 by Ton:
I didn't add the commenting out of correcting pulldown menu order, which
is based on location of the originating button in the UI. This uncommenting
didn't solve anything, since button definitions itself can be flipped too.
(Example: the data brose menus in top bar need to be corrected).
I can imagine the order flipping is sometimes annoying, but it still has
reasons to be there;
- the most important / most used items are always closest to the mouse.
(like opening properties panel, or "Add new" for material.
- it follows muscle memory and 'locus of attention' (mouse position).
- menus are configured to open to the top for bottom headers, and to the
bottom for top headers. We can expect the UI is configured consistantly
for headers, so in general the menus will appear consistant as well.
Where menu flipping fails is especially for alphabetic listings, like in
the menu button of fileselect. However, that one should be configured to
open by default to the bottom, so ordering is consistant as well.
Brecht Van Lommel [Tue, 16 Jun 2009 01:25:49 +0000 (01:25 +0000)]
UI scripts:
* Close some material/texture panels by default.
* Update material buttons to use more diffuse/specular variables.
* Don't show texture mapping/influence when the texture is pinned.
* Small visual tweak for sequencer header menus.
Brecht Van Lommel [Tue, 16 Jun 2009 01:22:56 +0000 (01:22 +0000)]
2.5: Image Editor
* Started porting over to python, menus nearly done, header WIP.
* Game Properties panel is in python too
* Deprecated "Tiles" as a per face flag here, now it's always on
the image, used to be both, working in a very confusing way.
Unlikely someone actually had a purpose for this being per face.
* Remove GPC_PolygonMaterial.cpp/h, it's not actually used anymore,
so I don't want to bother updating it.
* Fix crash in image painting (own mistake in porting over bugfix
from 2.4x).
Brecht Van Lommel [Tue, 16 Jun 2009 01:10:47 +0000 (01:10 +0000)]
2.5: Text editor, port menu code to python.
Brecht Van Lommel [Tue, 16 Jun 2009 01:08:39 +0000 (01:08 +0000)]
UI
* Added option for panel to be closed by default.
* Added support for RNA property and enum icons in buttons.
* Remove some deprecated RNA menu code.
* Fix issue with newly created panels not being inserted in the
right place.
* Fix issue with 3-split layout not being divided correctly.
* FIx issue with menu items not drawing correct using python UI.
Brecht Van Lommel [Tue, 16 Jun 2009 00:52:21 +0000 (00:52 +0000)]
RNA
* Added icon to property and enum property items. The latter is
responsible for the large number of files changed.
* For RNA functions, added PROP_RNAPTR flag to ask for a PointerRNA
as argument instead of a C pointer, instead of doing it implicitly
with the AnyType type.
* Material: properly wrap diffuse/specular param variables, and
rename some things for consistency.
* MaterialTextureSlot: added "enabled" property (ma->septex).
* Image: make animated property editable.
* Image Editor: make some things editable, notifiers, respect state.
* Context: fix issue with screen not being set as ID.
Andrea Weikert [Mon, 15 Jun 2009 20:28:49 +0000 (20:28 +0000)]
2.5 UI
* RNA enum for icons to allow specifying icons as string
* example: row.itemR(st, "line_numbers", text="", icon='ICON_LINENUMBERS_OFF')
Campbell Barton [Mon, 15 Jun 2009 20:22:50 +0000 (20:22 +0000)]
saving globalDict didnt work with python3.x