blender.git
11 years ago(no commit message)
Daniel Genrich [Mon, 30 Mar 2009 18:21:17 +0000 (18:21 +0000)]

11 years agoUI:
Brecht Van Lommel [Mon, 30 Mar 2009 17:31:37 +0000 (17:31 +0000)]
UI:
* Added support for RNA pointer buttons. It's like the existing
  ID pointer buttons but with an icon, and autocomplete works.
  There's some drawing issues currently but don't want to
  interfere with the refactoring here. Also todo is support for
  things like vertex groups or bones.

11 years agoAdd back helv 12 font, the old BMF_MINIMAL is now BLF_INTERNAL_MINIMAL, but
Diego Borghetti [Mon, 30 Mar 2009 16:49:21 +0000 (16:49 +0000)]
Add back helv 12 font, the old BMF_MINIMAL is now BLF_INTERNAL_MINIMAL, but
don't found any place that really use it.

11 years agoMSVC 2008 compile fixes
Daniel Genrich [Mon, 30 Mar 2009 14:11:32 +0000 (14:11 +0000)]
MSVC 2008 compile fixes

11 years agoAdding missing files to vcproj:
Daniel Genrich [Mon, 30 Mar 2009 14:07:59 +0000 (14:07 +0000)]
Adding missing files to vcproj:
/source/blender/blenfont/intern/blf_font_helv10.h
/source/blender/blenfont/intern/blf_internal.c

11 years ago2.5: fix for crash in EM_EndEditMesh when using 3d view header.
Brecht Van Lommel [Mon, 30 Mar 2009 13:53:48 +0000 (13:53 +0000)]
2.5: fix for crash in EM_EndEditMesh when using 3d view header.

11 years ago 2.5
Michael Fox [Mon, 30 Mar 2009 08:17:43 +0000 (08:17 +0000)]
  2.5
*******
ported some of the scene buttons to the new system
- added RNA_SceneRenderData struct to rna
- added a warning print to uiItemR when it can't find the property
- what is not there is due to relating entry not being in RNA
- anim button does not work

Im commiting this so we have much more wider test area then text and object buttons

11 years agoeditmesh accessor functions. most editmesh access now goes through:
Joseph Eagar [Mon, 30 Mar 2009 07:28:37 +0000 (07:28 +0000)]
editmesh accessor functions.  most editmesh access now goes through:

EditMesh *EM_GetEditMesh(Mesh *me);
void EM_EndEditMesh(Mesh *me, EditMesh *em);

as discussed on the mailling list, this is to facilitate migration to bmesh.
next step is to merge this this to the bmesh branch.  this was done in the 2.5
branch to prevent too great a divergance.

also, made makesdna/makesrna work on cygwin/msvc2008/scons.

11 years agoAdd blender internal font.
Diego Borghetti [Mon, 30 Mar 2009 05:32:46 +0000 (05:32 +0000)]
Add blender internal font.

This is the old bmfont library but using textures.

I made small test in the space Info and work fine,
commit now to finish tomorrow from work.

11 years agoAdded back old code for transform seq overlap in an '#if 0',
Campbell Barton [Mon, 30 Mar 2009 01:16:28 +0000 (01:16 +0000)]
Added back old code for transform seq overlap in an '#if 0',
since the loop that works around t->data being freed can sometimes shuffle strips that are not being transformed (eg, when extending or with locked strips)

11 years agoAdd snapping parameters to transform operators (only Translation, Resize and Rotation...
Martin Poirier [Sun, 29 Mar 2009 19:52:53 +0000 (19:52 +0000)]
Add snapping parameters to transform operators (only Translation, Resize and Rotation, since those are the one ones that support it).

11 years agoUI:
Brecht Van Lommel [Sun, 29 Mar 2009 19:44:39 +0000 (19:44 +0000)]
UI:
* Added a PanelType and HeaderType for registering panels
  and headers in regions. When the region draws, it will
  then automatically draw the ones that were registerd with
  poll and draw callbacks.

  Used for text header, properties and object buttons now.

11 years agoUI:
Brecht Van Lommel [Sun, 29 Mar 2009 18:44:49 +0000 (18:44 +0000)]
UI:
* Added support for soft/hard range in the buttons code. Currently
  it works by only allowing to drag or click increment in the soft
  range, but typing a number value allows to go outside it.

  If the number is outside the soft range, the range will be extended,
  rounded to values like:
  .., 0.1, 0.2, 0.5, 1.0, 2.0, 5.0, 10.0, 20.0, 50.0, ..

11 years ago2.5 MSVC 9 projectfiles
Andrea Weikert [Sun, 29 Mar 2009 08:40:43 +0000 (08:40 +0000)]
2.5 MSVC 9 projectfiles
- update for editors/armature
- update for RNA_context

11 years agomissed PyLong_FromSize_t -> PyLong_FromSsize_t in bpy_ui.c
Campbell Barton [Sun, 29 Mar 2009 08:31:04 +0000 (08:31 +0000)]
missed PyLong_FromSize_t -> PyLong_FromSsize_t in bpy_ui.c

11 years ago- renamed CURVE_OT_select_inverse -> CURVE_OT_select_invert
Campbell Barton [Sun, 29 Mar 2009 06:13:15 +0000 (06:13 +0000)]
- renamed CURVE_OT_select_inverse -> CURVE_OT_select_invert
- TEXT_OT_scroll_bar and TEXT_OT_scroll ops had the lines property default/min/max args swapped around.

11 years ago- python api was returning incorrect int values from rna because it was using PyLong_...
Campbell Barton [Sun, 29 Mar 2009 04:34:20 +0000 (04:34 +0000)]
- python api was returning incorrect int values from rna because it was using PyLong_FromSize_t rather than  PyLong_FromSsize_t, this messed up the default values in documentation.
- renamed POSE_OT_select_hierarchy "add_to_sel" property to "extend"
- some property names were wrong (giving errors in the console at startup)

11 years ago- use clear, set, add, enable, disable and toggle as a prefix in operator names
Campbell Barton [Sun, 29 Mar 2009 02:15:13 +0000 (02:15 +0000)]
- use clear, set, add, enable, disable and toggle as a prefix in operator names
- use select as a suffix eg UV_OT_loop_select -> UV_OT_select_loop
- Each select all operator was using slightly different wording...
  select_all, deselect_all, de_select_all, select_de_select_all -> select_all_toggle

- selection -> select
- POSE_OT_select_connected -> POSE_OT_select_linked to match other operators
- NODE_OT_delete_selection -> NODE_OT_delete since its not used in other operators
- ANIM_OT_previewrange_define -> ANIM_OT_previewrange_set to match other operators
- NODE_OT_fit_all -> NODE_OT_view_all to match other operators
- View2D_OT_* -> VIEW2D_OT_* to match VIEW3D
- View2D_OT_view_downscroll -> VIEW2D_OT_scroll_down more logical
- removed MARKER_OT_mouseselect_extend and made extend a boolean property of MARKER_OT_mouseselect
- MARKER_OT_mouseselect -> MARKER_OT_select
- GROUP_OT_group_remove -> GROUP_OT_objects_remove more logical since its removing objects from groups
- MESH_OT_removedoublesflag -> MESH_OT_remove_doubles
- redundant words MESH_OT_split_mesh -> MESH_OT_split,  OBJECT_OT_object_delete -> OBJECT_OT_delete

renamed selection operator properties
 extend_select -> extend
 column_select -> column
 select_children_only -> children_only
 ... Since these are all in the context of selection operators there is no need for the extra 'select' in the property name.

Updated docs
http://www.graphicall.org/ftp/ideasman42/html/bpyoperator-module.html

11 years agoShuffle only selected sequence blocks.
Martin Poirier [Sat, 28 Mar 2009 22:01:07 +0000 (22:01 +0000)]
Shuffle only selected sequence blocks.

11 years agoCorrectly cancel operator is there's no transform data.
Martin Poirier [Sat, 28 Mar 2009 20:46:38 +0000 (20:46 +0000)]
Correctly cancel operator is there's no transform data.

Don't access RegionView3D if region is of the wrong type.

Correctly draw extra transform stuff (like snap and pet circles) in multiple 3d regions.

11 years agoRemove exception for sequencer in after_trans by rewriting the update code. Please...
Martin Poirier [Sat, 28 Mar 2009 16:45:22 +0000 (16:45 +0000)]
Remove exception for sequencer in after_trans by rewriting the update code. Please don't start adding exceptions like that in transform without asking first.

11 years agoSequencer crashed when trying to draw waveform because of commented out failsafe.
Martin Poirier [Sat, 28 Mar 2009 16:25:33 +0000 (16:25 +0000)]
Sequencer crashed when trying to draw waveform because of commented out failsafe.

11 years ago- made epydoc generator write a list of words used in descriptions
Campbell Barton [Sat, 28 Mar 2009 11:44:07 +0000 (11:44 +0000)]
- made epydoc generator write a list of words used in descriptions
- fix spelling mistakes in rna docs (and some comments)

11 years ago- Added the Nurb struct as well as collections for BPoints and BezTriples
Campbell Barton [Sat, 28 Mar 2009 10:52:51 +0000 (10:52 +0000)]
- Added the Nurb struct as well as collections for BPoints and BezTriples
- Added nurb collection for curve objects

11 years ago* sequencer transform needs t->data not to be freed by postTrans so special_aftertran...
Campbell Barton [Fri, 27 Mar 2009 06:06:11 +0000 (06:06 +0000)]
* sequencer transform needs t->data not to be freed by postTrans so special_aftertrans_update can use it.
* text header needs a static char* so text is not rendered as gibberish. (until labels own their own strings)
* epy_doc_gen.py - write out a graphviz representation of the data api.

11 years agoremove ODE, build systems and BGE are ignoring it already.
Campbell Barton [Thu, 26 Mar 2009 20:17:05 +0000 (20:17 +0000)]
remove ODE, build systems and BGE are ignoring it already.

11 years ago2.5: Remove OOPS code from the outliner space, as discussed
Brecht Van Lommel [Thu, 26 Mar 2009 14:05:33 +0000 (14:05 +0000)]
2.5: Remove OOPS code from the outliner space, as discussed
this can be brought back as a new space if someone decides to
work on it.

This also fixes remaining issues with the outliner tree open
and close buttons not working sometimes.

11 years agoRNA: particle wrapping is a bit more complete now.
Brecht Van Lommel [Thu, 26 Mar 2009 13:56:32 +0000 (13:56 +0000)]
RNA: particle wrapping is a bit more complete now.

11 years agoF-Curve Modifiers: Experimental 'Additive' option for Generator Modifiers
Joshua Leung [Thu, 26 Mar 2009 11:12:39 +0000 (11:12 +0000)]
F-Curve Modifiers: Experimental 'Additive' option for Generator Modifiers

This setting means that instead of blindly replacing the existing values, the generator modifier will instead apply its effects on top of any existing modifiers (and/or curve data).
Thus, it is now possible to apply effects such sin/cos-based oscillations on top of keyframed motion.

11 years agoUI:
Brecht Van Lommel [Wed, 25 Mar 2009 20:49:15 +0000 (20:49 +0000)]
UI:
* Screen level regions created for menus are now a separate
  CTX_wm_menu in the context, so they don't interfere with
  existing regions.
* Fix context in popup menus to always come from the area
  and region the popup was opened from.
* Removed some unused context stuff: tasks and reports.
  The places that were using context reports were using it
  wrong anyway.
* Fix F6 closing immediately after editing a button, by
  making uiBlockSetFlag not clear existing flags anymore.
* Don't use ":" in boolean X/Y/Z buttons.

11 years agoRNA:
Brecht Van Lommel [Wed, 25 Mar 2009 20:29:01 +0000 (20:29 +0000)]
RNA:
* Test with constructing RNA paths from pointer + property, based on
  a callback per struct. For animato we'll need to be able to do this,
  for keyframing from buttons, unless we can somehow derive the paths
  from the interface code, which seems like an unnecessary burden.

  However constructing such paths is not always quick, and we need a
  fast way to find out if a property is animated for drawing buttons,
  so this may not be the best solution.

  See rna_mesh.c for some callbacks created as a test.

* Added BLI_sprintfN to mallocN a new string using printf style
  formatting.

11 years agoRNA: fix for texture patch compile on MSVC, mixing declarations and code.
Brecht Van Lommel [Wed, 25 Mar 2009 18:21:48 +0000 (18:21 +0000)]
RNA: fix for texture patch compile on MSVC, mixing declarations and code.

11 years ago2.5
Ton Roosendaal [Wed, 25 Mar 2009 17:12:25 +0000 (17:12 +0000)]
2.5

Before everyone starts complaining, yes the arrows on the
number buttons were flipped. :)

11 years ago2.5
Ton Roosendaal [Wed, 25 Mar 2009 16:58:42 +0000 (16:58 +0000)]
2.5

WIP commit for new system to draw widgets and use themes or styles.

Not really interesting stuff to see in code now, the current
structure will change quite a lot, this to make it hook up well
to the existing system.

What works quite well is a new full opengl vector method to draw
scalable and pixel-aligned anti-aliased buttons.

http://download.blender.org/institute/rt3.jpg
http://download.blender.org/institute/rt4.jpg

11 years agoRNA: texture types Clouds/Wood/Marble/Magic/Stucci wrapped,
Brecht Van Lommel [Wed, 25 Mar 2009 14:42:47 +0000 (14:42 +0000)]
RNA: texture types Clouds/Wood/Marble/Magic/Stucci wrapped,
patch by Sven von Brand, thanks!

11 years agoRNA: make svn props and file ending consistent.
Brecht Van Lommel [Wed, 25 Mar 2009 14:35:36 +0000 (14:35 +0000)]
RNA: make svn props and file ending consistent.

11 years agoUI:
Brecht Van Lommel [Wed, 25 Mar 2009 14:34:17 +0000 (14:34 +0000)]
UI:
* Fix for F6 redo and similar popups closing when moving
  mouse outside of the popup while interacting with buttons.
* Simplify F6 redo popup code by using generated layout.

11 years agoAdded makesrna for INC, fixing the 'make' building
Joilnen Leite [Tue, 24 Mar 2009 19:50:24 +0000 (19:50 +0000)]
Added makesrna for INC, fixing the 'make' building

11 years agoStarted wrapping nodes in RNA. Only shader nodes have all their options wrapped;
Robin Allen [Tue, 24 Mar 2009 17:40:58 +0000 (17:40 +0000)]
Started wrapping nodes in RNA. Only shader nodes have all their options wrapped;
TEX and CMP to follow.

Also, renumbered the texture nodes because when I first wrote them I thought
they could share ID numbers with the SH and CMP nodes. D'oh!

11 years ago 2.5
Michael Fox [Tue, 24 Mar 2009 12:16:58 +0000 (12:16 +0000)]
  2.5
*******
results of a review of my previous commits by brecht

11 years agoBGE rna epydocs, add a list of all references to this struct from other properties
Campbell Barton [Tue, 24 Mar 2009 06:53:57 +0000 (06:53 +0000)]
BGE rna epydocs, add a list of all references to this struct from other properties

http://www.graphicall.org/ftp/ideasman42/html/rna.Object-class.html

11 years agoRNA: fix some warnings, return with void value in a void function.
Brecht Van Lommel [Mon, 23 Mar 2009 20:19:09 +0000 (20:19 +0000)]
RNA: fix some warnings, return with void value in a void function.

11 years agoPython:
Brecht Van Lommel [Mon, 23 Mar 2009 14:39:37 +0000 (14:39 +0000)]
Python:
* Fix for not printing syntax error when running script
  from the text editor, and crash on exit. Campbell, please
  check if this is OK?

11 years agoPython
Brecht Van Lommel [Mon, 23 Mar 2009 13:28:42 +0000 (13:28 +0000)]
Python
* Add support for setting RNA pointers.
* Fix __repr__ for structs and properties, it was printing
  a garbage string here, but not sure I did what was intended.

11 years agoRNA:
Brecht Van Lommel [Mon, 23 Mar 2009 13:24:48 +0000 (13:24 +0000)]
RNA:
* Allow pointers to be editable, did SpaceTextEditor.text as a test.
* Changed PROP_NOT_EDITABLE to PROP_EDITABLE, and added
  RNA_def_property_clear_flag.
* Removed rna_dependency.c test code.

11 years agoRNA: added CloudsTexture as an example.
Brecht Van Lommel [Mon, 23 Mar 2009 11:10:07 +0000 (11:10 +0000)]
RNA: added CloudsTexture as an example.

11 years agoRNA: Code for Texture inheritance, some cleanups.
Brecht Van Lommel [Mon, 23 Mar 2009 11:08:01 +0000 (11:08 +0000)]
RNA: Code for Texture inheritance, some cleanups.

11 years ago 2.5
Michael Fox [Mon, 23 Mar 2009 03:14:56 +0000 (03:14 +0000)]
  2.5
*******
- added descriptions to view3d operators
- fixed up the object select menu
- fixed a few typos

11 years agoFinished porting etch-a-ton to 2.5
Martin Poirier [Mon, 23 Mar 2009 01:01:44 +0000 (01:01 +0000)]
Finished porting etch-a-ton to 2.5

Changes: Gestures are now Shift-ActionMouse (doing it with SelectMouse required a bit of juggling and triggered a display glitch that I'll try to debug later)

Everything else should be as functional as in trunk, apart from the dotted rubber band line which doesn't update while the view is rotated and only the current area getting redrawn while drawing (the later should be easy to fix).

11 years ago 2.5
Michael Fox [Sun, 22 Mar 2009 23:41:05 +0000 (23:41 +0000)]
  2.5
******
ported object ops to new naming conventions

11 years ago 2.5
Michael Fox [Sun, 22 Mar 2009 22:07:52 +0000 (22:07 +0000)]
  2.5
*******
added decriptions to object and groups operators

11 years agoRNA:
Brecht Van Lommel [Sun, 22 Mar 2009 14:49:13 +0000 (14:49 +0000)]
RNA:
* As an example, added the Material Shader Node.

11 years agoRNA: basic code for Node inheritance.
Brecht Van Lommel [Sun, 22 Mar 2009 14:46:45 +0000 (14:46 +0000)]
RNA: basic code for Node inheritance.

11 years agoF-Curve Modifiers - Envelope: Bugfixes
Joshua Leung [Sun, 22 Mar 2009 09:54:13 +0000 (09:54 +0000)]
F-Curve Modifiers - Envelope: Bugfixes

* Envelope modifier now works correctly. Previously, the mapping was being done in the wrong order.
* Extra controls for modifiers now only draw when the F-Curve is the active one, so the view will be less cluttered in other cases.

11 years agoFirst part of operatorizing etch-a-ton in 2.5
Martin Poirier [Sun, 22 Mar 2009 00:30:18 +0000 (00:30 +0000)]
First part of operatorizing etch-a-ton in 2.5

Polyline, selection and a couple of others work. (note that polyline is shift-click because click is taken by 3d cursor. Needs a way to overwrite lower maps).

11 years agoget rid of warnings, fix for a refcount error
Campbell Barton [Sat, 21 Mar 2009 16:03:26 +0000 (16:03 +0000)]
get rid of warnings, fix for a refcount error

11 years ago- lazy subtype initialization rna, was initializing every type in bpy.types at startu...
Campbell Barton [Sat, 21 Mar 2009 06:55:30 +0000 (06:55 +0000)]
- lazy subtype initialization rna, was initializing every type in bpy.types at startup, which is slow and doesn't allow access to dynamically added types.
- bpy.types isnt a module anymore, defined as its own PyType, getattr looks up the rna collection each time.
- refcounting fixes
- fixe epydoc generation with undefined values

11 years agoF-Curve Modifiers: Envelope Modifier
Joshua Leung [Sat, 21 Mar 2009 03:49:22 +0000 (03:49 +0000)]
F-Curve Modifiers: Envelope Modifier

Got the basic envelope modifier code working, including primitive drawing of relevant helper info in the graph view. It doesn't work in a very intuitive way yet, so I will recode it soon.

11 years agoCompiling fix for etch-a-ton commit - I've moved BIF_freeRetarget() to be before...
Joshua Leung [Fri, 20 Mar 2009 23:11:44 +0000 (23:11 +0000)]
Compiling fix for etch-a-ton commit - I've moved BIF_freeRetarget() to be before the single place that seems to use it.

11 years agomerge more etch-a-ton code. nothing works, but it compiles. Will try to get it workin...
Martin Poirier [Fri, 20 Mar 2009 18:00:51 +0000 (18:00 +0000)]
merge more etch-a-ton code. nothing works, but it compiles. Will try to get it working this week end.

11 years ago2.5: add rna_context.c, missed that in last commit.
Brecht Van Lommel [Fri, 20 Mar 2009 14:52:58 +0000 (14:52 +0000)]
2.5: add rna_context.c, missed that in last commit.

11 years ago2.5
Ton Roosendaal [Fri, 20 Mar 2009 10:51:58 +0000 (10:51 +0000)]
2.5

Makes older python's compile.

11 years ago2.5 compiles again with scons. Commented out some lines referring to code in the...
Joshua Leung [Fri, 20 Mar 2009 03:32:56 +0000 (03:32 +0000)]
2.5 compiles again with scons. Commented out some lines referring to code in the missing file rna_context.c

11 years agoContext
Brecht Van Lommel [Thu, 19 Mar 2009 19:03:38 +0000 (19:03 +0000)]
Context

* Made it based on string lookups rather than fixed enum, to make
  it extensible by python scripts.
* Context callbacks now also have to specify RNA type when returning
  pointers or collections. For non-RNA wrapped data, UnknownType can
  be used.
* RNA wrapped context. The WM entries are fixed, for data context
  only main and scene are defined properties. Other data entries have
  to be dynamically looked up.
* I've added some special code in python for the dynamic context
  lookups. Tried to hide it behind RNA but didn't find a clean way to
  do it yet. Still unused/untested.

* Also minor fix for warning about propertional edit property in
  transform code, and fix for usage of operator poll with checking if
  it was NULL.

11 years agoMakefile updates for Blender 2.5 (from GSR)
Chris Want [Thu, 19 Mar 2009 01:50:45 +0000 (01:50 +0000)]
Makefile updates for Blender 2.5 (from GSR)

11 years ago* removed warnings and fixed some python refcount errors
Campbell Barton [Wed, 18 Mar 2009 22:22:58 +0000 (22:22 +0000)]
* removed warnings and fixed some python refcount errors
* operator class names
- Changed 'name' to '__label__' (since __name__ is already used for the class name)
- Changed 'properties' to '__props__'

* added a PyObject_GetAttrStringArgs(), utility function which Id like to see in pythons C api.
PyObject_GetAttrStringArgs(pyob, "someattr", "foo", "bar") /* pyob.someattr.foo.bar */

11 years agoGraph Editor: F-Curves which can only take integral values are now drawn stair-steppe...
Joshua Leung [Wed, 18 Mar 2009 10:58:18 +0000 (10:58 +0000)]
Graph Editor: F-Curves which can only take integral values are now drawn stair-stepped using the sampling code.

11 years ago2.50: some warning fixes.
Brecht Van Lommel [Tue, 17 Mar 2009 22:27:15 +0000 (22:27 +0000)]
2.50: some warning fixes.

11 years ago2.50: svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r18677...
Brecht Van Lommel [Tue, 17 Mar 2009 21:44:58 +0000 (21:44 +0000)]
2.50: svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r18677:19317

Notes:
* Sequence transform strip uses G.scene global, this is commented
  out now, should be fixed.
* Etch-a-ton code was most difficult to merge. The files already in
  2.5 got merged, but no new files were added. Calls to these files
  are commented out with "XXX etch-a-ton". editarmature.c and
  transform_snap.c were complex to merge. Martin, please check?
* Game engine compiles and links again here for scons/make/cmake
  (player still fails to link).

11 years agoF-Curve Modifiers: Cycles Modifier
Joshua Leung [Tue, 17 Mar 2009 06:37:50 +0000 (06:37 +0000)]
F-Curve Modifiers: Cycles Modifier

* Added GUI and fixed bugs in the Cycles Modifier. This replaces the old Cyclic Extrapolation settings, giving more fine-grained control over the results. You can now specify whether the keyframes are repeated before and/or after the range independently, also, the maximum number of cycles on either side can be controlled.

* TODO: it would be nice to have the last value held for cyclic+offset.

* Deleting modifiers now works

11 years agoF-Curve Modifier - Generator: Buttons for builtin-function mode (i.e. sin, cos, etc.)
Joshua Leung [Tue, 17 Mar 2009 00:31:10 +0000 (00:31 +0000)]
F-Curve Modifier - Generator: Buttons for builtin-function mode (i.e. sin, cos, etc.)

11 years agofailed building with python 2.5 and older
Campbell Barton [Mon, 16 Mar 2009 17:02:58 +0000 (17:02 +0000)]
failed building with python 2.5 and older

11 years agoThis is patch:
Kent Mein [Mon, 16 Mar 2009 17:02:19 +0000 (17:02 +0000)]
This is patch:
[#17974] two small fix for blender 2.48 (memory leak and uninitalized vars)
Submitted By:
Pavel Nemec (nemecp)

(changes delete to [] and sets to vars to NULL)

Kent

11 years agoPatch by gsr: [#18411] Improved makefiles for translation files
Kent Mein [Mon, 16 Mar 2009 16:35:29 +0000 (16:35 +0000)]
Patch by gsr: [#18411] Improved makefiles for translation files
Makes it so it uses wildcards instead of hardcoding the po files
and also only builds files if missing/changed.

Kent

11 years ago2.5 PyAPI
Campbell Barton [Mon, 16 Mar 2009 15:54:43 +0000 (15:54 +0000)]
2.5 PyAPI
Support for subclassing blenders operator, to be registered as a new operator.

Still need to...
* add constants like Operator.FINISHED
* wrap context (with rna?)
* poll() cant work right now because there is no way to access the operatorType that holds the python class.
* ´╗┐Only float, int and bool properties can be added so far.

working example operator.
http://wiki.blender.org/index.php/BlenderDev/Blender2.5/WinterCamp/TechnicalDesign#Operator_Example_Code

11 years agoF-Curve Modifiers - Generator: Finishing off most of UI
Joshua Leung [Mon, 16 Mar 2009 11:43:02 +0000 (11:43 +0000)]
F-Curve Modifiers - Generator: Finishing off most of UI

* Finished code for Expanded Polynomial and Factorised Polynomial UI's.
* Started UI code for 'Builtin Function' mode. There are still 4 controls to add there to use something other than simple mapping
* Finished/fixed up verification code for these so that values get initialised ok.

11 years agoF-Curve Modifiers: Basic GUI for Generator Modifier working
Joshua Leung [Mon, 16 Mar 2009 11:11:44 +0000 (11:11 +0000)]
F-Curve Modifiers: Basic GUI for Generator Modifier working

* Currently, this only works for the 'Expanded polynomial' mode, but this will be expanded to include the other modes too. Now you can modify the values and interactively see the graph in the view change.

* Disabled the backdrops (modifier 'panels') temporarily, as ROUNDBOX UI elements currently swallow all events, which is not good.

Note: the code here still uses the old-style UI definition code since the new stuff is still under heavy construction.

11 years agoMerging etch-a-ton branch in trunk.
Martin Poirier [Mon, 16 Mar 2009 02:55:42 +0000 (02:55 +0000)]
Merging etch-a-ton branch in trunk.

Slightly out of date documentation in wiki, I'll be updating that tomorrow.

http://wiki.blender.org/index.php/User:Theeth/etch-a-ton

11 years agoCustom python wasnt building without BF_PYTHON_LIBPATH set
Campbell Barton [Mon, 16 Mar 2009 02:39:56 +0000 (02:39 +0000)]
Custom python wasnt building without BF_PYTHON_LIBPATH set

11 years agoF-Curve Modifiers: Generator Modifier Code
Joshua Leung [Mon, 16 Mar 2009 01:12:37 +0000 (01:12 +0000)]
F-Curve Modifiers: Generator Modifier Code

* Rewrote the Generator modifier to be more efficient and support more options
* A few UI tweaks for this, but the UI for this is still not yet functional though.

11 years agoBGE
Nathan Letwory [Sun, 15 Mar 2009 23:40:59 +0000 (23:40 +0000)]
BGE
* getting state of RMB was impossible due to wrong check.

11 years agoRNA:
Brecht Van Lommel [Sun, 15 Mar 2009 11:30:02 +0000 (11:30 +0000)]
RNA:
* Fix a dependency issue in Makefiles.
* Fix use of uninitialized variable in makesrna.

11 years agoFix for typo which broke compiling
Joshua Leung [Sun, 15 Mar 2009 10:43:17 +0000 (10:43 +0000)]
Fix for typo which broke compiling

11 years agoF-Curve Modifiers: Groundwork for getting these working
Joshua Leung [Sun, 15 Mar 2009 10:39:02 +0000 (10:39 +0000)]
F-Curve Modifiers: Groundwork for getting these working

- Completed cleaning up the drawing code so that F-Curves with modifiers now get drawn to reflect this.
- Added a temporary operator to add modifiers (hotkey Ctrl-Shift-M)

11 years ago2.5
Andrea Weikert [Sun, 15 Mar 2009 08:58:33 +0000 (08:58 +0000)]
2.5
fix compile error with python on MSVC.

11 years agoflat and smooth shading descriptions were replaced
Shaul Kedem [Sun, 15 Mar 2009 03:11:05 +0000 (03:11 +0000)]
flat and smooth shading descriptions were replaced

11 years agoRNA:
Brecht Van Lommel [Sat, 14 Mar 2009 23:17:55 +0000 (23:17 +0000)]
RNA:

- Added an autogenerated C++ API, basically a simple layer over the C
  API, but with the advantage that it fits the object oriented RNA
  model better. Read-only still like the C API.
- Had to rename "protected" property in Action Group because it is
  a C++ keyword, called it "locked" since that seems more consistent
  anyway?
- It's not used anywhere, so here's some example code I used to test it,
  to get an idea of how it would be used:

http://pasteall.org/4582/cpp

- Also, ID names are now editable.

11 years ago2.5 filebrowser
Andrea Weikert [Sat, 14 Mar 2009 18:15:28 +0000 (18:15 +0000)]
2.5 filebrowser
- drawing tweak for background lines
- long and short display now behave the same, only difference is column width now.
TODO still:
- add additional columns (access rights - mode1-mode3 and owner) for non-Windows platforms

11 years agoreturn operators as a PyCFunction rather then having our own callable operator type
Campbell Barton [Sat, 14 Mar 2009 13:43:30 +0000 (13:43 +0000)]
return operators as a PyCFunction rather then having our own callable operator type

11 years ago2.5 filebrowser
Andrea Weikert [Sat, 14 Mar 2009 13:12:11 +0000 (13:12 +0000)]
2.5 filebrowser
* added filter buttons to header
* changed large icon for movie files to match small icon
* fixed small stack corruption in interface_draw.c (Matt, check if this is ok)
* moved nice display of file size to storage.c, where string is created.

11 years ago 2.5
Michael Fox [Sat, 14 Mar 2009 09:06:31 +0000 (09:06 +0000)]
  2.5
*******
small commit, tweaked the emboss based on the object buttons, made it really subtle but still make it easier to read compared to no emboss, a new way will be needed for menus to work aswel

11 years ago* File browser
Matt Ebb [Sat, 14 Mar 2009 05:21:57 +0000 (05:21 +0000)]
* File browser
Columns view now displays nice human-readable file sizes

11 years ago* UI tweaking
Matt Ebb [Sat, 14 Mar 2009 03:24:23 +0000 (03:24 +0000)]
* UI tweaking

11 years ago update v1.12 - 2009.03.14 by migius
Remigiusz Fiedler [Fri, 13 Mar 2009 23:35:15 +0000 (23:35 +0000)]
 update v1.12 - 2009.03.14 by migius
 d3 removed all set()functions (problem with osx/python<2.4 reported by Blinkozo)
 d3 code-cleaning
 d2 temp patch for noname BLOCKS (*X,*U,*D)

11 years agomerging trunk 19093:19274 etch-a-ton
Martin Poirier [Fri, 13 Mar 2009 18:04:38 +0000 (18:04 +0000)]
merging trunk 19093:19274

11 years ago2.5: UI Layout Engine, initial code.
Brecht Van Lommel [Fri, 13 Mar 2009 13:38:41 +0000 (13:38 +0000)]
2.5: UI Layout Engine, initial code.

* As a test, used by:
  * Object buttons, tried to make it match the mockup.
  * Text window header.
  * Text window properties panel.
* Panel interaction with view2d is still problematic, need to make
  this work properly still.
* Templates are very basic, the ones there are simple but already
  can follow the object buttons mockup quite closely.
* It's based on a three level system: panels, templates and items.
  To get an idea of what that means in practice, see:

http://wiki.blender.org/index.php/BlenderDev/Blender2.5/UI_LayoutEngine#Panels.2C_Templates_and_Items

11 years agoMakefiles: fix definitions of NAN_OPENEXR_* variables on linux, patch provided
Stefan Gartner [Fri, 13 Mar 2009 10:22:49 +0000 (10:22 +0000)]
Makefiles: fix definitions of NAN_OPENEXR_* variables on linux, patch provided
by GSR

11 years ago2.5 Python api
Campbell Barton [Fri, 13 Mar 2009 07:50:07 +0000 (07:50 +0000)]
2.5 Python api
- rearranged modules bpyui -> bpy.ui, bpy -> bpy.data, remove bpydoc
- new module bpy.types, stores a list of all struct types
- added __rna__ attribute to types - eg bpy.types.World.__rna__ so you can access the rna data from a type. (so bpydoc.structs isnt needed anymore)
- removed unused subtyping method (use python subclassing rather then C PyTypeObject)

11 years ago2.5 filebrowser
Andrea Weikert [Thu, 12 Mar 2009 19:36:59 +0000 (19:36 +0000)]
2.5 filebrowser
- better encapsulation for fsmenu to make it easier to remove global later.
- cleaned up fsmenu code to use just one global
- on file_exec current directory gets added to recent.
- save last 10 recent files in .Bfs too.

11 years agoRNA:
Martin Poirier [Thu, 12 Mar 2009 15:28:00 +0000 (15:28 +0000)]
RNA:
* boolean/int/float_set_array now works for non-array
  properties as well, just setting the value with the first
  element of the array.