Commit Graph

15267 Commits

Author SHA1 Message Date
Nathan Letwory
49631b6e40 2.5
- fix warnings for append_qt (missing param)
2009-01-04 19:16:13 +00:00
Martin Poirier
3009e10151 2.5
Missing call to free mesh octree in post transform function.
Was breaking x-mirror
2009-01-04 19:11:56 +00:00
Martin Poirier
d19e758964 2.5
Fix compile error with AVI support
2009-01-04 19:10:57 +00:00
Nathan Letwory
7cd56835a3 2.5 / global cleanup fix
- RenderData was missing from append_movie/avi
2009-01-04 18:26:43 +00:00
Nathan Letwory
9e7643aa7c 2.5 / Cleanup
- remove Verse support. This will be brought back in The Future (probably jiri + me)
  This means 5k lines less in blenkernel.
- fix two small errors for global cleanup, now compiles properly with FFMPEG enabled too.
2009-01-04 18:16:34 +00:00
Ton Roosendaal
3aeb63cad2 2.5
WM: added area-listener, which can be used to tag refreshes for
either the drawing call, or use the new ED_area_tag_refresh() 
function which will automatically call, after all notifiers
were handled, an the spacetype->refresh() you provided.

Added for Joshua, after reviewing Action/Dopesheet requirements.

Joshua: I've made two dummy functions in space_action.c:
- action_listener()
- action_refresh()

Wich now does a printf on activating a new object.
2009-01-04 17:45:54 +00:00
Ton Roosendaal
f7cb86df3a 2.5
Think global, act local!

The old favorite G.scene gone! Man... that took almost 2 days.
Also removed G.curscreen and G.edbo.

Not everything could get solved; here's some notes.
- modifiers now store current scene in ModifierData. This is not
  meant for permanent, but it can probably stick there until we
  cleaned the anim system and depsgraph to cope better with
  timing issues.
- Game engine G.scene should become an argument for staring it.
  Didn't solve this yet.
- Texture nodes should get scene cfra, but the current implementation
  is too tightly wrapped to do it easily.
2009-01-04 14:14:06 +00:00
Matt Ebb
74f9e98c82 * Enabled disabled drawing for 'locked' buttons
(made with uiBlockSetButLock())
2009-01-04 07:50:41 +00:00
Joshua Leung
0feedfe591 2.5 - Outliner/RNA Viewer View2d Fixes (Part 1)
Cleaned up the View2D setup stuff here, by removing all the hacky manual setting of tot and cur rects. Now the Outliner and RNA are scrollable again.

However, in the process, I uncovered a few rather nasty bugs that must've been around for ages. 
1) The width-calculation code depends on te->xend for calculating the max-extents, but that is not set until drawing of channels commences. This is far too late, as it is needed for the setting of the 'tot' rect's extents, so that we can have horizontal scrolling, and an accurate horizontal scroller! I noticed that RNA version of this currently hacks around this by using constant width of 100, but that's not a great final solution.

2) There's some minor pixel offset twitching going on with the restriction columns when the view is resized. Also, for RNA, the buttons sometimes cause a few drawing artifacts. Will check on this in part 2.
2009-01-04 04:21:32 +00:00
Michael Fox
125057c430 no idea how this happened :S 2009-01-04 02:39:22 +00:00
Michael Fox
f2b1c96d02 2.5
*******
- Ported show/hide objects as the clear/set restrictview operators (request of kaito)
	- clear is not using a context loop as there is none currently available
	- set uses a popup menu for hide select and hide unselected

 hotkeys are H and Alt-H (set, clear)

- ported the undo calles, to use ED_undo_push where available
2009-01-04 02:34:34 +00:00
Matt Ebb
475a64fc91 * Added support for displaying disabled RNA buttons
The functionality already existed via the RNA system, this
commit makes disabled buttons draw greyed out, and not respond to clicks
(previously, they would drag/edit/etc but then reset to the previous value)
2009-01-04 02:09:41 +00:00
Nathan Letwory
610a56843e 2.5 / Nodes / Transformations
- after talking with Martin P (theeth), I have now shuffled code around
  so that there is no more exception code for nodes in the wrong places.
  This means node editor now also use entirely common translation.
  As proof of concept, there is now also resize and rotate support. It already
  works, but there need to be a bit more thought in how those
  actions are initialised for node editor. Probably some way to tell
  what to use as pivot point, etc.
2009-01-04 01:08:01 +00:00
Matt Ebb
3817b1f018 Some tweaks to menu drawing 2009-01-04 00:05:40 +00:00
Nicholas Bishop
4a8fdd8064 Fixed a couple of properties in Modifiers. 2009-01-03 23:14:33 +00:00
Martin Poirier
ecc5f17e4d 2.5
Transform operator replay

Basic support working. Only saves mode and values, not constraint setup.

Removed event pointer from TransInfo (it's not available in operator exec). Replaced checks to event->modifiers to a functional modifier bitfield in TransInfo (that is, instead of checking for Shift, it checks for MOD_PRECISION) to make it remappable later.

Misc:
	X-Mirror for mesh now working with transform
2009-01-03 22:15:59 +00:00
Nicholas Bishop
166d957c5a Added more RNA MTex properties 2009-01-03 21:10:48 +00:00
Nicholas Bishop
31cdeab07e Added some sub-structs to Material RNA for halo and ray transp/mirror
settings. Material RNA shows much cleaner in the RNA viewer now.
2009-01-03 20:20:09 +00:00
Brecht Van Lommel
3f58b37683 2.5: fix "repeat last", and display of operator properties
in rna outliner.
2009-01-03 20:03:39 +00:00
Nicholas Bishop
927adad8e2 Added RNA for MTex, also property for mtex array in Material RNA. 2009-01-03 19:39:39 +00:00
Nathan Letwory
666f82a0a9 2.5
- Make sure shader, composit and texture ntrees have an id.name. This is to ensure
  that node trees in Material, Scene and Texture are properly identified through RNA
2009-01-03 18:43:11 +00:00
Martin Poirier
3c1a588396 2.5
Snapping for editmesh remove a silly bug and make it work with PET. In that case, you can only snap to other object, not to the edit mesh.
2009-01-03 17:21:32 +00:00
Matt Ebb
23ba8345c1 missed this one last time 2009-01-03 12:39:36 +00:00
Joshua Leung
7d5847defb 2.5
* Start of Action/Pose syncing code (in anim_deps.c) This is currently not hooked up yet, as we still need to figure out where these should get called (due to a few dependencies they have - i.e. visibility syncing of channels is turned on/off by setting in appropriate views).

* Also added assorted comments/changes to rna/dna
2009-01-03 11:35:39 +00:00
Joshua Leung
38fcc20580 2.5 - Silenced various compiler warnings 2009-01-03 10:03:26 +00:00
Nicholas Bishop
10cce9cec6 Started RNA for MTex 2009-01-03 08:08:44 +00:00
Matt Ebb
2a7fbc2e27 * Added notifier updates for RNA modifier data 2009-01-03 07:25:22 +00:00
Nicholas Bishop
1439a5dc32 Renamed RNA EnvironmentalMap to EnvironmentMap 2009-01-03 07:20:11 +00:00
Matt Ebb
f873a0a132 * Added icons for RNA modifier data to datablocks outliner view 2009-01-03 06:34:40 +00:00
Joshua Leung
4b320c26a3 2.5 - Action Editor: IPO Curve Protect works now
* Added the relevant filtering necessary for this to work, into the animation-channel filtering code. 
* Updated most of the keyframe-editing tools to respect this
* Renamed keyframe-editing API loopers (added ANIM_ prefix) for consistency
* Added function for mapping keyframes to/from NLA-mapping for Ipo-Curves in addition to the one for IPO blocks. As a result, renamed the latter for consistency.
2009-01-03 06:01:11 +00:00
Matt Ebb
61f7ba6fa2 * Added some notifications to object/lamp/material RNA properties
For now, I've made a distinction between (eg.) ND_LIGHTING and ND_LIGHTING_DRAW,
with the 'draw' variety being properties that get displayed in the 3D View

* Also did some cleaning in lamp RNA, moved sun/sky settings to its own struct
2009-01-03 05:41:58 +00:00
Nicholas Bishop
9f7b9f3355 Added RNA for EnvMaps. Also some more properties for Textures. 2009-01-03 05:18:11 +00:00
Nicholas Bishop
2163a16496 Exiting editmode crashed on this old multires line. 2009-01-03 02:22:51 +00:00
Nicholas Bishop
acc2c24e79 Changed a couple pointer properties to the texture type. 2009-01-03 02:11:27 +00:00
Nicholas Bishop
fcad4f4112 Added a bunch of RNA properties for textures. 2009-01-03 01:55:37 +00:00
Nicholas Bishop
de32cba536 After more careful reading of RNA docs, added underscores to enum identifiers. 2009-01-03 01:37:57 +00:00
Nathan Letwory
bdf6a002aa 2.5 / Nodes
* add Context accessor for selected nodes
* node translation uses transform code
* put transform defines in an enum (mode and numinput flags)
2009-01-02 23:58:03 +00:00
Nicholas Bishop
25aaa7b92e Made the basic RNA changes for Tex(ture), no properties wrapped yet. 2009-01-02 23:05:28 +00:00
Nicholas Bishop
012b33d30d Added RNA for Shrinkwrap, Mask, and SimpleDeform modifiers. That's all the modifiers for now. 2009-01-02 19:22:43 +00:00
Ton Roosendaal
a6721c60d9 2.5
From the anti-globalization department: 
G.obedit terminated!

Wherever possible, use CTX_data_edit_object(C) to get this
now. It's stored in scene now, and the screen context has
it defined.
2009-01-02 19:10:35 +00:00
Brecht Van Lommel
16ca4b572e RNA
* DNA_object_types.h done.
* Scriptlink skeleton added.
* Fix cmake compile.
2009-01-02 16:58:09 +00:00
Brecht Van Lommel
6b73bc9b06 RNA
* Finished last Lattice properties, is done now.
* Some tweaks to Mesh structs naming.
2009-01-02 14:48:03 +00:00
Ton Roosendaal
70fe666456 2.5
- Lasso select back (CTRL+LMB), object centers only, 
  and for editmesh. See template in wm_operators.c

- Circle select for editmode back. Currently it still
  uses Ckey, and is only a temporary mode, not persistant.
  Persistant circle select can be added later with 
  tweak gesture keymap? We'll see. :) The old circle
  select was actually annoying that it was so sticky.
2009-01-02 14:11:18 +00:00
Brecht Van Lommel
a371f5513a RNA
* Added skeleton code for particle/object_force/userdef.
* More Object properties wrapped.
* Added User Preferences display in outliner.
2009-01-02 13:47:33 +00:00
Joshua Leung
326b3122cf 2.5 - Action Editor: Toggle settings
* Added back enable (Ctrl-Shift-W), disable (Alt-W), and toggle (Shift-W) operators to channels view. They are separate operators which use the same backend code.

* Fixed icon-drawing for IPO-curve 'protect' buttons. After doing this, I've realised that many tools will need some alterations to take this into account. That commit will come later.
2009-01-02 11:06:27 +00:00
Ton Roosendaal
ad4e1df46b 2.5
Bugfix in OSX ghost!
The GHOST_TWindowState was set to 'invisble' always... which is a
state now handled correctly in Blender. It caused the window to not 
refresh when resizing.
2009-01-02 10:58:30 +00:00
Nicholas Bishop
a167816d8b Added RNA for the ParticleInstance, Explode, and Bevel modifiers. 2009-01-02 10:19:58 +00:00
Michael Fox
7eefa2a7b9 2.5
*******
small commit, after some help from ton i have fixed the clear transformation modifiers, they now redraw correctly, they was missing a depsgraph tag, also did a little tidying up
2009-01-02 09:57:05 +00:00
Campbell Barton
52214a5e88 * renamed some of the RNA sound identifiers
* was missing a MEM_freeN in previous commit
2009-01-02 09:35:33 +00:00
Nicholas Bishop
e150f5ba8e Added RNA for the MeshDeform, Cast, and Smooth Modifiers. Also some changes to pointer types in other places. 2009-01-02 08:03:20 +00:00