Commit Graph

16572 Commits

Author SHA1 Message Date
Brecht Van Lommel
ae5c7e7edb RNA:
* As an example, added the Material Shader Node.
2009-03-22 14:49:13 +00:00
Brecht Van Lommel
3bf71fbe38 RNA: basic code for Node inheritance. 2009-03-22 14:46:45 +00:00
Joshua Leung
7c86a10aba 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.
2009-03-22 09:54:13 +00:00
Martin Poirier
b995f4329a 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).
2009-03-22 00:30:18 +00:00
Campbell Barton
935f10dc45 get rid of warnings, fix for a refcount error 2009-03-21 16:03:26 +00:00
Campbell Barton
6ab2d7ad65 - 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
2009-03-21 06:55:30 +00:00
Joshua Leung
b4209c5656 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.
2009-03-21 03:49:22 +00:00
Joshua Leung
90a58790b2 Compiling fix for etch-a-ton commit - I've moved BIF_freeRetarget() to be before the single place that seems to use it. 2009-03-20 23:11:44 +00:00
Martin Poirier
1af7bd439a merge more etch-a-ton code. nothing works, but it compiles. Will try to get it working this week end. 2009-03-20 18:00:51 +00:00
Brecht Van Lommel
884cfe25d3 2.5: add rna_context.c, missed that in last commit. 2009-03-20 14:52:58 +00:00
Ton Roosendaal
99d9596328 2.5
Makes older python's compile.
2009-03-20 10:51:58 +00:00
Joshua Leung
bcddeaa699 2.5 compiles again with scons. Commented out some lines referring to code in the missing file rna_context.c 2009-03-20 03:32:56 +00:00
Brecht Van Lommel
1b94cb752c 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.
2009-03-19 19:03:38 +00:00
Chris Want
77e0199dc3 Makefile updates for Blender 2.5 (from GSR) 2009-03-19 01:50:45 +00:00
Campbell Barton
3aab50f775 * 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 */
2009-03-18 22:22:58 +00:00
Joshua Leung
43d4e3fa7e Graph Editor: F-Curves which can only take integral values are now drawn stair-stepped using the sampling code. 2009-03-18 10:58:18 +00:00
Brecht Van Lommel
aeb2225a28 2.50: some warning fixes. 2009-03-17 22:27:15 +00:00
Brecht Van Lommel
d52400bfbd 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).
2009-03-17 21:44:58 +00:00
Joshua Leung
1ac0d54fea 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
2009-03-17 06:37:50 +00:00
Joshua Leung
b68f5d7e96 F-Curve Modifier - Generator: Buttons for builtin-function mode (i.e. sin, cos, etc.) 2009-03-17 00:31:10 +00:00
Campbell Barton
929c3fe91a failed building with python 2.5 and older 2009-03-16 17:02:58 +00:00
Kent Mein
28f6d223d0 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
2009-03-16 17:02:19 +00:00
Kent Mein
26ff236fb4 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
2009-03-16 16:35:29 +00:00
Campbell Barton
16fe92f868 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
2009-03-16 15:54:43 +00:00
Joshua Leung
133e8827b7 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.
2009-03-16 11:43:02 +00:00
Joshua Leung
ae0f349346 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.
2009-03-16 11:11:44 +00:00
Martin Poirier
7d2703c805 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
2009-03-16 02:55:42 +00:00
Campbell Barton
89459e4a51 Custom python wasnt building without BF_PYTHON_LIBPATH set 2009-03-16 02:39:56 +00:00
Joshua Leung
8522b08e05 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.
2009-03-16 01:12:37 +00:00
Nathan Letwory
1e1b88c118 BGE
* getting state of RMB was impossible due to wrong check.
2009-03-15 23:40:59 +00:00
Brecht Van Lommel
9ad4cd89c2 RNA:
* Fix a dependency issue in Makefiles.
* Fix use of uninitialized variable in makesrna.
2009-03-15 11:30:02 +00:00
Joshua Leung
863a0e246f Fix for typo which broke compiling 2009-03-15 10:43:17 +00:00
Joshua Leung
329aa658c9 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)
2009-03-15 10:39:02 +00:00
Andrea Weikert
6508ad460f 2.5
fix compile error with python on MSVC.
2009-03-15 08:58:33 +00:00
Shaul Kedem
dff4852671 flat and smooth shading descriptions were replaced 2009-03-15 03:11:05 +00:00
Brecht Van Lommel
cc59417cae 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.
2009-03-14 23:17:55 +00:00
Andrea Weikert
e7e655ce74 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
2009-03-14 18:15:28 +00:00
Campbell Barton
d297058910 return operators as a PyCFunction rather then having our own callable operator type 2009-03-14 13:43:30 +00:00
Andrea Weikert
b907b9fd9b 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.
2009-03-14 13:12:11 +00:00
Michael Fox
2aa71b4226 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
2009-03-14 09:06:31 +00:00
Matt Ebb
59b08278b4 * File browser
Columns view now displays nice human-readable file sizes
2009-03-14 05:21:57 +00:00
Matt Ebb
856cdeade7 * UI tweaking 2009-03-14 03:24:23 +00:00
Remigiusz Fiedler
e0b629fe71 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)
2009-03-13 23:35:15 +00:00
Martin Poirier
54a55827ec merging trunk 19093:19274 2009-03-13 18:04:38 +00:00
Brecht Van Lommel
4c3d64116e 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
2009-03-13 13:38:41 +00:00
Stefan Gartner
39acb4efa4 Makefiles: fix definitions of NAN_OPENEXR_* variables on linux, patch provided
by GSR
2009-03-13 10:22:49 +00:00
Campbell Barton
a4793a3b4a 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)
2009-03-13 07:50:07 +00:00
Andrea Weikert
432171fd99 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.
2009-03-12 19:36:59 +00:00
Martin Poirier
8420089d8b 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.
2009-03-12 15:28:00 +00:00
Ton Roosendaal
a1a91f9c8b 2.5
Makes Ghost compile for Make. Apparently the 'debug' directories are
still in use?
2009-03-12 09:15:49 +00:00