Commit Graph

16026 Commits

Author SHA1 Message Date
Andrea Weikert
0f040e2f26 2.5 filebrowser
- WIP commit
- bookmarks toggling (region collapsing needs to be done still)
- switching between display types in header (long filenames needs to be done still)
2009-03-03 13:15:40 +00:00
Andrea Weikert
ead30e5bc1 2.5 filebrowser
bugfix: create directories to store thumbnails if they don't exist.
2009-03-03 10:24:06 +00:00
Nathan Letwory
981dde56b4 (which was the wrong one. of course) 2009-03-03 10:22:00 +00:00
Nathan Letwory
dbbe764a24 2.5 / SCons / Win64
- add a very preliminary config.
2009-03-03 10:21:11 +00:00
Diego Borghetti
63b4879c9e And another commit to cleanup a little, this is the last,
next commit add internal font and we can go ahead and remove
ftfont and bmfont.
2009-03-02 21:02:39 +00:00
Campbell Barton
c2fdac64c4 * errors in bpyui draw scripts were segfaulting
* added PyLineSpit(), useful for debugging so you can easily find the 
line of the python script running.
2009-03-02 20:18:29 +00:00
Campbell Barton
24e8d7aa74 scons error 2009-03-02 17:24:40 +00:00
Brecht Van Lommel
4902b6e8e0 2.5: fix for compiling Carbon clipboard code, forgot to update this line. 2009-03-02 14:34:33 +00:00
Andrea Weikert
1a380356fc 2.5 MSVC9 projectfiles
- space_text update
2009-03-02 13:55:53 +00:00
Matt Ebb
fc192338c0 * some more rna stuff in materials 2009-03-02 13:34:34 +00:00
Brecht Van Lommel
143fb8e131 2.5: bugfix, new text space was not initialized correct. 2009-03-02 12:43:54 +00:00
Diego Borghetti
acc8d06b77 Cleanup a little before add internal font (bmfont). 2009-03-02 05:20:48 +00:00
Joshua Leung
06629033b3 Pose Channels - changing settings in RNA updates them correctly again 2009-03-02 01:22:02 +00:00
Joshua Leung
d52212c73e 2.5 - Various animation bugfixes for samples 2009-03-02 00:55:10 +00:00
Joshua Leung
6888f540e8 Graph Editor: Baking (Alt-C) operator now works as expected
In the process, added some really basic drawing code for curves containing such data. Note: the endpoints don't draw right yet though.
2009-03-01 11:47:29 +00:00
Joshua Leung
d9c9108a6e Graph Editor: Added operator to 'bake' keyframe-based F-Curves to be composed of samples.
This operator can be activated using the 'Alt-C' hotkey for now, and operates on selected + editable F-Curves. This is currently still highly experimental, and does crash

I've implemented this as a way to test out the FPoints/samples code, which will be used to provide better support of the dense F-Curves which result from importing Mocap/BVH data. These should use considerably less memory + have a few additional benefits over keyframes when they're working in a stable fashion.
2009-03-01 11:27:31 +00:00
Joshua Leung
db472a3d14 View2D: Removed the hacks from commit 19005 as they weren't actually needed. The keymap currently contains some special method for coping with this. 2009-03-01 06:22:03 +00:00
Joshua Leung
7f8b81c5d4 2.5 - Animation related tweaks
* Scrollers for zoomable views are now always shown again. The previous method was quite bad for these, as there would be flickering as the view was zoomed + panned. Also, the old method was not suggestive of the drag-zoom features on the scrollers, which was provided by the shaded bars. (Non-zoomable views will still only show scrollers where appropriate).

* Insert-Key in 3d-view (i.e. the 'temp' operator which still needs to be ported to use builtin relative keyingsets) had a bug where the wrong keyframe were being inserted (rotation in instead of location, scaling instead of rotation) for bones.
2009-03-01 05:45:44 +00:00
Joshua Leung
31750bf1de 2.5 - Text Editor bugfix
KM_TEXTINPUT event matching was not correctly working for standard number keys (and chars such as @ # $ % ^ & etc.), which were being ignored. 

Ton - you might like to check this commit. It works fine here now, but it might not be the intended way.
2009-03-01 01:50:21 +00:00
Brecht Van Lommel
6cc89b9d4e 2.5: Text Editor back.
There was very little structure in this code, using many globals
and duplicated code. Now it should be better structured. Most
things should work, the main parts that are not back yet are the
python plugins and markers. Notes:

* Blenfont is used for drawing the text, nicely anti-aliased.
* A monospace truetype font was added, since that is needed for
  the text editor. It's Bitstream Vera Sans Mono. This is the
  default gnome terminal font, but it doesn't fit entirely well
  with the other font I think, can be changed easily of course.

* Clipboard copy/cut/paste now always uses the system clipboard,
  the code for the own cut buffer was removed.
* The interface buttons should support copy/cut/paste again now
  as well.
* WM_clipboard_text_get/WM_clipboard_text_set were added to the
  windowmanager code.

* Find panel is now a kind of second header, instead of a panel.
  This needs especially a way to start editing the text field
  immediately on open still.

* Operators are independent of the actual space when possible,
  was a bit of puzzling but got it solved nice with notifiers,
  and some lazy init for syntax highlight in the drawing code.
* RNA was created for the text editor space and used for buttons.

* Operators:
    * New, Open, Reload, Save, Save As, Make Internal
    * Run Script, Refresh Pyconstraints
    * Copy, Cut, Paste
    * Convert Whitespace, Uncomment, Comment, Indent, Unindent
    * Line Break, Insert
    * Next Marker, Previous Marker, Clear All Markers, Mark All
    * Select Line, Select All
    * Jump, Move, Move Select, Delete, Toggle Overwrite
	* Scroll, Scroll Bar, Set Cursor, Line Number
    * Find and Replace, Find, Replace, Find Set Selected,
	  Replace Set Selected
    * To 3D Object
    * Resolve Conflict
2009-02-28 23:33:35 +00:00
Nathan Letwory
2469305376 2.5 \ Python API
* put back #if PY_VERSION_HEX check again, so we without Python 3.0 can still compile
  - Campbell, please don't remove it again, ok?
2009-02-28 15:28:18 +00:00
Campbell Barton
bab4cd6991 Python experimental UI API
Can draw panels in the scripts space containing RNA and operator buttons.
* Added bpyui.register() so scripts can draw buttons and panels into the scripts space type.
* wrapped drawBlock, drawPanels and matchPanelsView2d
* Operator buttons take a python dictionary used to set the button defaults.
* BPY_getFileAndNum utility function to get the filename and line number python is currently running.
2009-02-28 13:27:45 +00:00
Joshua Leung
0f8969640c Bugfixes for armature operators - parent + align operators weren't working correctly, since the active bone wasn't being accounted for in the right way. 2009-02-28 10:23:36 +00:00
Andrea Weikert
924ff0dc98 2.5: updated MSVC9 project files
- blenfont
- editors: sculpt changed to sculpt_draw
- some RNA additions (rna_animation.c)
- fixed some game engine include directories
2009-02-28 09:59:27 +00:00
Joshua Leung
6f7a43217b 2.5 - Various animation bugfixes
* When inserting keyframes, newly created groups are no longer created with expanded + active flags set. The former should work better and keep the views less crowded by default when there are many F-Curves.
* Fixed crash when trying to select action groups. This only seemed to happen in one of the BBB files...
* Settings that have been tagged in RNA as being un-animateable are now ignored when creating Keying Sets.
* Removed some un-needed old code from keyframing code. I've still left in the old-style builtin KeyingSets from about 2.48, since those will be useful reference when setting up the new builtin KeyingSets.
* Removed obsolete correction factor for Visual Keying -> object rotations.
2009-02-28 09:58:58 +00:00
Joilnen Leite
badbba7266 Making y2 for File the same that Add Timeline etc 2009-02-28 07:45:16 +00:00
Campbell Barton
71cedc8c1b Running the OBJECT_OT_mesh_add operator outside the 3d view would crash. 2009-02-27 21:27:03 +00:00
Diego Borghetti
b992a449f1 Restore the #if around the ui_module declaration, this made compiled fail
with python 2.5 (< 3.0).
2009-02-27 14:10:44 +00:00
Campbell Barton
66c2f1c2a3 added defAutoButR() and blockSetFlag() and some flags for the experimental python UI, which just wraps C the functions. 2009-02-27 10:22:40 +00:00
Campbell Barton
b49b02842a update to build with python 3.0.1 which removed Py_InitModule3, added richcompare functions to the operator api. 2009-02-26 05:50:19 +00:00
Brecht Van Lommel
9ac7c8e91a 2.5: Particle edit mode more functional now. Transform, brush
editing, paint cursor, radial control, mouse/border/circle/lasso
select, mirroring, bad level calls fixed, etc.
2009-02-25 19:29:58 +00:00
Ton Roosendaal
c3078c94fb 2.5
SHIFT+A add armature didn't add a bone yet. :)
2009-02-25 14:50:40 +00:00
Ton Roosendaal
c0a6cb950d 2.5
Four new operators for Armature editmode, by Arystan D.

- Extrude (Ekey)
  Extrude forked (shift-E when mirror on)
- CTRL+click extrude
- Delete selected (Xkey)
- Duplicate (shift-D)
2009-02-25 13:48:39 +00:00
Joshua Leung
f58b4eedca Animato Conversions:
Action Channels (for bones only) are now converted to the new Action Groups, restoring expand/collapse functionality for these, which was quite helpful.
2009-02-25 11:26:16 +00:00
Joshua Leung
e6b05abd00 Outliner/Datablocks view: IKEY/Alt-IKEY Hotkeys work for Inserting/Deleting keyframes via KeyingSets 2009-02-25 10:55:03 +00:00
Joshua Leung
3767070c8a Anim-Channel Filtering: If an object only has animation-data attached to one of its Material datablocks, they will now get included too.
This makes it possible to edit keyframes for material animation where no object-linked animation exists. However, this is provided that the material is linked to an object!
2009-02-25 10:27:08 +00:00
Ton Roosendaal
fc070ca31c 2.5
Bugfix in compositor: code that duplicated the nodetree and merged
viewer images back lacked handling the case when a viewer was not
set active yet.

This fixes eternal loops in compositor after removing Viewers.
2009-02-25 09:54:41 +00:00
Ton Roosendaal
669dd229f4 2.5
Bugfix: commit of last week that moved object_handle_update() out
of the view3d code into event loop caused render to crash. This
update should not be called during render. In future it'll even
be thread-locked or better; solved by giving objects an 'owner'
for storage of updates.

This solves a lot of crashes on render.
2009-02-25 09:36:25 +00:00
Kent Mein
d9862517fb Added return statements to a couple of functions that didn't have
them and removed an extra ;

Kent
2009-02-24 16:51:55 +00:00
Joshua Leung
c2145c67e8 Made animation-editor copy/paste operators use reports-api for reporting errors instead of console prints. 2009-02-24 11:23:04 +00:00
Joshua Leung
57cf62745f DopeSheet/Graph Editors: Restored Copy/Paste operators
The channel-matching code when pasting still needs improvements to work really nicely...
2009-02-24 11:18:24 +00:00
Nicholas Bishop
b46128d7b1 Added rna timeline to cmake build 2009-02-24 03:14:57 +00:00
Roland Hess
03ce51bb89 Gave RNA to timeline markers. Updated both Scene and Action RNA for standard and pose markers. 2009-02-24 03:06:23 +00:00
Ton Roosendaal
b9ecc4962b 2.5
Weightpaint could crash, wrong check for editmode mesh.
2009-02-23 17:30:00 +00:00
Ton Roosendaal
576cb47945 2.5
Added more strict poll() to radial control for texture paint.
I'd advise to use wherever possible G.f checks in the polls for now, 
easier to get this solved later.
2009-02-23 16:31:58 +00:00
Roland Hess
8416db896c ADR_CODE conversion done for particle systems. Fixed typo in particle rna. 2009-02-23 14:55:23 +00:00
Joshua Leung
ce5428cf4a Graph Editor: Tweaking the drawing of the channel colours for F-Curve channels.
I'm not happy with this yet, but it seems a reasonable compromise. There is a commented-out method included here too.
2009-02-23 06:22:47 +00:00
Nicholas Bishop
ee49a9596c brought back the sculpt buttons in the NKEY panel 2009-02-22 22:00:35 +00:00
Nicholas Bishop
674aae36b6 * Added radial control for texture paint (in both view3d and image)
* bugfix: for older files, initialize the brush curve on file load
2009-02-22 19:31:25 +00:00
Joshua Leung
7c8d98acb8 Animation Editors: Drawing stuff
* Added basic panels (Info, Drivers - where applicable, Modifiers) for editing active F-Curve/driver in Graph Editor. The buttons layouts here are really really rough, and have only got a few buttons to be sufficient for debugging purposes. Unfortunately, I don't have time to tweak these nicely now. 

* Fixed indention errors with Action Groups used in Material actions

* Changing mode in the Graph Editor now recalculates colours
2009-02-22 09:30:18 +00:00