blender.git
10 years agomerge with 2.5 at 19207, plus some half-finished walker stuff
Joseph Eagar [Sun, 8 Mar 2009 07:15:41 +0000 (07:15 +0000)]
Merge ... 2.5 at 19207, plus some half-finished walker stuff

10 years ago-> Added new restrction to Join Face Kill Edge Euler
Geoffrey Bantle [Fri, 6 Mar 2009 19:41:57 +0000 (19:41 +0000)]
-> Added new restrction to Join Face Kill Edge Euler

Join Face Kill Edge now checks to make sure it wont create
a face where the same vertex appears twice in the loop cycle.

Note to Joe:

This is what we talked about on IRC a while back. It
seems to work from here, but you should probably give it a
really good test in the vert dissolve code.

10 years ago-> New Euler: "Unglue Face Region Make Vert"
Geoffrey Bantle [Fri, 6 Mar 2009 18:57:43 +0000 (18:57 +0000)]
-> New Euler: "Unglue Face Region Make Vert"

Added a new euler that will take as an argument a face
that is part of a disk and a vertex in the face. The euler
will then 'unglue' this region. An example of this would
be two cones joined at the tip...

Note that this code is untested and probably will have
bugs so shouldnt be trusted yet...

10 years agoBM_SplitFace now copies header flags to the new face. kindof hackish right now,...
Joseph Eagar [Fri, 6 Mar 2009 07:17:56 +0000 (07:17 +0000)]
BM_SplitFace now copies header flags to the new face.  kindof hackish right now, need to consider how to solve this correctly.  also cleaned up tesselator a little and corrected some optimizations that were causing problems.  the tesselators now use doubles for internal calculations, should hopefully be more accurate.

10 years agotesselator works. . .FINALLYscons/scons.py BF_QUICK=bf_editors_mesh,bf_bmesh,bf_blenl...
Joseph Eagar [Fri, 6 Mar 2009 06:06:14 +0000 (06:06 +0000)]
tesselator works. . .FINALLYscons/scons.py BF_QUICK=bf_editors_mesh,bf_bmesh,bf_blenlib,bf_transform,bf_editors_transform also made transform code execute it after transform end.  tesselator uses original algorithm, yay

10 years ago2.5 / Area management
Nathan Letwory [Thu, 5 Mar 2009 23:19:44 +0000 (23:19 +0000)]
2.5 / Area management
* implementation of a proposal from during Wintercamp:
  - with SHIFT-LMB drag of area corner the area gets
    duplicated into a new window.
    This is the old "Rip Area" operator with a new,
    better name. The old menu and hotkey are now gone.
    This means we have currently split, join and now
    duplicate/copy area into new window in the area
    actionzones.

10 years agosmall commit to allow bpy_operator.c to compile in msvc
Shaul Kedem [Thu, 5 Mar 2009 17:47:33 +0000 (17:47 +0000)]
small commit to allow bpy_operator.c to compile in msvc

10 years agoPyRNA API: some RNA types were crashing on looping, also return None rather then...
Campbell Barton [Thu, 5 Mar 2009 16:24:30 +0000 (16:24 +0000)]
PyRNA API: some RNA types were crashing on looping, also return None rather then an RNA struct when the ptr->data is NULL

10 years agoMake RNA an Operator dir() work in py 2.5 - 3.0
Campbell Barton [Thu, 5 Mar 2009 12:09:30 +0000 (12:09 +0000)]
Make RNA an Operator dir() work in py 2.5 - 3.0
removed epy docstrings from RNA python api, since Python can get this info from rna. (could be redone in python if getting doc's on RNA is needed)
epy_doc_gen works again

10 years ago2.5 / PyRNA
Nathan Letwory [Thu, 5 Mar 2009 08:53:29 +0000 (08:53 +0000)]
2.5 / PyRNA
* a collection of small changes after review together with Campbell.

10 years agoBoolean vectors and arrays!
Martin Poirier [Wed, 4 Mar 2009 15:30:47 +0000 (15:30 +0000)]
Boolean vectors and arrays!

10 years agorun script in the text editor is back. UI scripts dont work yet.
Campbell Barton [Wed, 4 Mar 2009 13:26:33 +0000 (13:26 +0000)]
run script in the text editor is back. UI scripts dont work yet.

10 years agomissing file
Joseph Eagar [Wed, 4 Mar 2009 09:38:26 +0000 (09:38 +0000)]
missing file

10 years agook right branch. . .stop laughing at me :)
Joseph Eagar [Wed, 4 Mar 2009 09:34:33 +0000 (09:34 +0000)]
ok right branch. . .stop laughing at me :)

10 years agoSome compiling tweaks for cmake / osx 10.5
Matt Ebb [Wed, 4 Mar 2009 08:58:24 +0000 (08:58 +0000)]
Some compiling tweaks for cmake / osx 10.5

10 years agoPrintf-style method of calling operations now take a modified format string,
Joseph Eagar [Wed, 4 Mar 2009 08:21:10 +0000 (08:21 +0000)]
Printf-style method of calling operations now take a modified format string,
like so:

[opname] [slotname]=%[format code]

Before it was relying on the input format codes being in the same proper
order as the slots, which seemed like a potential maintainance nightmare to
me.  Also the flags for creating buffers from bmop flags or header flags,
now support additional modifiers for combining vert/edge/face inputs.
E.g. %hfvef would accept all geometry with a header flag, and
%fef would accept edges and faces with a certain bmop flag set.

Example from the UI code:

if (!EDBM_CallOpf(em, op, "del geom=%hf context=%d", BM_SELECT, DEL_ONLYFACES))
return OPERATOR_CANCELLED;

(remember EDBM_CallOpf is the UI wrapper for this that does conversion,
 error reporting, etc).

 On todo is cleaning up/splitting bmesh_operators.h,
 since it's kindof a mesh right now.  I'm thinking of adding the slot
 names in comments next to the slot ids, but I definitely would have to
 clean up bmesh_operators.h first, or it'd just be too chaotic for me.
 BTW, the operator API should now have enough meta info to wrap with
 a scripting language, not that it matters since that's not happening till
 much much later.

 Also hopefully corrected some SConscripts, fix mostly provided by Elia Sarti,
 though I also copied some SConscripts from 2.5 (not sure if doing
 so was especially helpful).

 Finally, I refactored a few places to use the new operator calling api,
 as an example of how this is beneficial.

10 years ago2.5 filebrowser
Andrea Weikert [Tue, 3 Mar 2009 13:15:40 +0000 (13:15 +0000)]
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)

10 years ago2.5 filebrowser
Andrea Weikert [Tue, 3 Mar 2009 10:24:06 +0000 (10:24 +0000)]
2.5 filebrowser
bugfix: create directories to store thumbnails if they don't exist.

10 years ago(which was the wrong one. of course)
Nathan Letwory [Tue, 3 Mar 2009 10:22:00 +0000 (10:22 +0000)]
(which was the wrong one. of course)

10 years ago2.5 / SCons / Win64
Nathan Letwory [Tue, 3 Mar 2009 10:21:11 +0000 (10:21 +0000)]
2.5 / SCons / Win64
- add a very preliminary config.

10 years agoAnd another commit to cleanup a little, this is the last,
Diego Borghetti [Mon, 2 Mar 2009 21:02:39 +0000 (21:02 +0000)]
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.

10 years ago* errors in bpyui draw scripts were segfaulting
Campbell Barton [Mon, 2 Mar 2009 20:18:29 +0000 (20:18 +0000)]
* errors in bpyui draw scripts were segfaulting
* added PyLineSpit(), useful for debugging so you can easily find the
line of the python script running.

10 years agoscons error
Campbell Barton [Mon, 2 Mar 2009 17:24:40 +0000 (17:24 +0000)]
scons error

10 years ago2.5: fix for compiling Carbon clipboard code, forgot to update this line.
Brecht Van Lommel [Mon, 2 Mar 2009 14:34:33 +0000 (14:34 +0000)]
2.5: fix for compiling Carbon clipboard code, forgot to update this line.

10 years ago2.5 MSVC9 projectfiles
Andrea Weikert [Mon, 2 Mar 2009 13:55:53 +0000 (13:55 +0000)]
2.5 MSVC9 projectfiles
- space_text update

10 years ago* some more rna stuff in materials
Matt Ebb [Mon, 2 Mar 2009 13:34:34 +0000 (13:34 +0000)]
* some more rna stuff in materials

10 years ago2.5: bugfix, new text space was not initialized correct.
Brecht Van Lommel [Mon, 2 Mar 2009 12:43:54 +0000 (12:43 +0000)]
2.5: bugfix, new text space was not initialized correct.

10 years agoCleanup a little before add internal font (bmfont).
Diego Borghetti [Mon, 2 Mar 2009 05:20:48 +0000 (05:20 +0000)]
Cleanup a little before add internal font (bmfont).

10 years agoCreated a printf-style method of calling operators. I did this to cut down on duplicated
Joseph Eagar [Mon, 2 Mar 2009 04:08:24 +0000 (04:08 +0000)]
Created a printf-style method of calling operators. I did this to cut down on duplicated
code, and also because calling operators was such a pain.  The basic form of the format
is "opname %[code]", where each % matches to an argument.

The codes are fairly simple:
 d - int
 i - int
 f - float
 h[v/e/f] - all verts/edges/faces with a certain header flag.
 f[v/e/f] - all verts/edges/faces with a certain flag.

For example:

  EDBM_CallOpf(em, op, "dissolveverts %hv", BM_SELECT)

will call the dissolve verts operator.

The relevent functions are:
//calls a bmesh operator, doing necassary conversions and error reporting.
int EDBM_CallOpf(EditMesh *em, struct wmOperator *op, char *fmt, ...);

//execute an operator
int BMO_CallOpf(BMesh *bm, char *fmt, ...);
//initializes but doesn't execute an op.
int BMO_InitOpf(BMesh *bm, BMOperator *op, char *fmt, ...);
//vlist version of above.
int BMO_VInitOpf(BMesh *bm, BMOperator *op, char *fmt, va_list vlist);

Note this system is dependant on getting the slot codes from the argument
order.  I'd like to make it better, possibly pass in slot names, but that'd
mean actually giving the slots names (which I can do, but wanted to discuss with
Briggs and others what I have now first).

10 years agomore tweaks to triangulator. also added a bmeshutils.c file in editors/mesh for...
Joseph Eagar [Mon, 2 Mar 2009 02:21:18 +0000 (02:21 +0000)]
more tweaks to triangulator.  also added a bmeshutils.c file in editors/mesh for ui-related bmesh functions.  and made delete only faces use the bmesh del operator, so it can handle ngons.

10 years agoPose Channels - changing settings in RNA updates them correctly again
Joshua Leung [Mon, 2 Mar 2009 01:22:02 +0000 (01:22 +0000)]
Pose Channels - changing settings in RNA updates them correctly again

10 years ago2.5 - Various animation bugfixes for samples
Joshua Leung [Mon, 2 Mar 2009 00:55:10 +0000 (00:55 +0000)]
2.5 - Various animation bugfixes for samples

10 years agoGraph Editor: Baking (Alt-C) operator now works as expected
Joshua Leung [Sun, 1 Mar 2009 11:47:29 +0000 (11:47 +0000)]
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.

10 years agoGraph Editor: Added operator to 'bake' keyframe-based F-Curves to be composed of...
Joshua Leung [Sun, 1 Mar 2009 11:27:31 +0000 (11:27 +0000)]
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.

10 years agomade triangulator produce less nice triangulations for speed. hopefully I've not...
Joseph Eagar [Sun, 1 Mar 2009 09:12:34 +0000 (09:12 +0000)]
made triangulator produce less nice triangulations for speed.  hopefully I've not relaxed the angle requirements too much.  I realized that, at least for tesselating ngons it doesn't help uch to have pretty triangulations, you'll still have all the interpolation problems and whatnot.

10 years agofixed duplicated header that had gotten out of sync with it's duplicated sibling...
Joseph Eagar [Sun, 1 Mar 2009 08:22:46 +0000 (08:22 +0000)]
fixed duplicated header that had gotten out of sync with it's duplicated sibling.  man that was annoying.  would get rid of duplicated header, only I really should do that in main 2.5 branch, which i don't have checked out right now.

10 years agocoded little vert connect tool. connects selected verts within the same face. curre...
Joseph Eagar [Sun, 1 Mar 2009 08:02:28 +0000 (08:02 +0000)]
coded little vert connect tool.  connects selected verts within the same face.  currently integrated with fkey, along with the simple face merge tool I made too.

10 years agoadding files from merge.
Joseph Eagar [Sun, 1 Mar 2009 06:47:11 +0000 (06:47 +0000)]
adding files from merge.

10 years agoSplit dissolve_disk into dissolve_vert and dissolve_disk as agreed.
Joseph Eagar [Sun, 1 Mar 2009 06:36:16 +0000 (06:36 +0000)]
Split dissolve_disk into dissolve_vert and dissolve_disk as agreed.
also made dissolve vert bmop use the error api, and put in some code
to report it to the user in the xkey ui code.

Need to make a file in editors/mesh for client code utility functions for
bmesh, like e.g. reporting bmesh errors to the user, handling conversion
more automatically, etc.

10 years agosplit dissolve_disk into dissolve_vert dissolve_disk as agreed. also made dissolve...
Joseph Eagar [Sun, 1 Mar 2009 06:23:22 +0000 (06:23 +0000)]
split dissolve_disk into dissolve_vert dissolve_disk as agreed.  also made dissolve vert bmop use the error api, and put in some code to report it to the user in the xkey ui code.  I'm not sure how this should work; I don't think we can have utility code in bmesh/ for reporting errors to the user, so it'll have to go in editors/mesh somewhere.

10 years agoView2D: Removed the hacks from commit 19005 as they weren't actually needed. The...
Joshua Leung [Sun, 1 Mar 2009 06:22:03 +0000 (06:22 +0000)]
View2D: Removed the hacks from commit 19005 as they weren't actually needed. The keymap currently contains some special method for coping with this.

10 years ago2.5 - Animation related tweaks
Joshua Leung [Sun, 1 Mar 2009 05:45:44 +0000 (05:45 +0000)]
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.

10 years ago2.5 - Text Editor bugfix
Joshua Leung [Sun, 1 Mar 2009 01:50:21 +0000 (01:50 +0000)]
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.

10 years agoyay tesselator is behaving. seems to work ok now. it's kindof slow, would be worth...
Joseph Eagar [Sun, 1 Mar 2009 01:03:52 +0000 (01:03 +0000)]
yay tesselator is behaving.  seems to work ok now.  it's kindof slow, would be worth investigating faster methods someday, also get briggs more elegant method to work.  but don't want this to be a time sink.

10 years ago2.5: Text Editor back.
Brecht Van Lommel [Sat, 28 Feb 2009 23:33:35 +0000 (23:33 +0000)]
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

10 years ago2.5 \ Python API
Nathan Letwory [Sat, 28 Feb 2009 15:28:18 +0000 (15:28 +0000)]
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?

10 years agoPython experimental UI API
Campbell Barton [Sat, 28 Feb 2009 13:27:45 +0000 (13:27 +0000)]
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.

10 years agomerge with trunk. also tried to fix tesselator code; new code should've worked,...
Joseph Eagar [Sat, 28 Feb 2009 12:49:18 +0000 (12:49 +0000)]
Merge ... trunk.  also tried to fix tesselator code; new code should've worked, but there's still some problems, possibly not in the tesselator code entirely.  also still have reverted tools/Blender.py since scons still isn't fixed, heh.

10 years agoBugfixes for armature operators - parent + align operators weren't working correctly...
Joshua Leung [Sat, 28 Feb 2009 10:23:36 +0000 (10:23 +0000)]
Bugfixes for armature operators - parent + align operators weren't working correctly, since the active bone wasn't being accounted for in the right way.

10 years ago2.5: updated MSVC9 project files
Andrea Weikert [Sat, 28 Feb 2009 09:59:27 +0000 (09:59 +0000)]
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

10 years ago2.5 - Various animation bugfixes
Joshua Leung [Sat, 28 Feb 2009 09:58:58 +0000 (09:58 +0000)]
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.

10 years agoMaking y2 for File the same that Add Timeline etc
Joilnen Leite [Sat, 28 Feb 2009 07:45:16 +0000 (07:45 +0000)]
Making y2 for File the same that Add Timeline etc

10 years agoRunning the OBJECT_OT_mesh_add operator outside the 3d view would crash.
Campbell Barton [Fri, 27 Feb 2009 21:27:03 +0000 (21:27 +0000)]
Running the OBJECT_OT_mesh_add operator outside the 3d view would crash.

10 years agoRestore the #if around the ui_module declaration, this made compiled fail
Diego Borghetti [Fri, 27 Feb 2009 14:10:44 +0000 (14:10 +0000)]
Restore the #if around the ui_module declaration, this made compiled fail
with python 2.5 (< 3.0).

10 years agoadded defAutoButR() and blockSetFlag() and some flags for the experimental python...
Campbell Barton [Fri, 27 Feb 2009 10:22:40 +0000 (10:22 +0000)]
added defAutoButR() and blockSetFlag() and some flags for the experimental python UI, which just wraps C the functions.

10 years agoupdate to build with python 3.0.1 which removed Py_InitModule3, added richcompare...
Campbell Barton [Thu, 26 Feb 2009 05:50:19 +0000 (05:50 +0000)]
update to build with python 3.0.1 which removed Py_InitModule3, added richcompare functions to the operator api.

10 years ago2.5: Particle edit mode more functional now. Transform, brush
Brecht Van Lommel [Wed, 25 Feb 2009 19:29:58 +0000 (19:29 +0000)]
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.

10 years ago2.5
Ton Roosendaal [Wed, 25 Feb 2009 14:50:40 +0000 (14:50 +0000)]
2.5

SHIFT+A add armature didn't add a bone yet. :)

10 years ago2.5
Ton Roosendaal [Wed, 25 Feb 2009 13:48:39 +0000 (13:48 +0000)]
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)

10 years agoAnimato Conversions:
Joshua Leung [Wed, 25 Feb 2009 11:26:16 +0000 (11:26 +0000)]
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.

10 years agoOutliner/Datablocks view: IKEY/Alt-IKEY Hotkeys work for Inserting/Deleting keyframes...
Joshua Leung [Wed, 25 Feb 2009 10:55:03 +0000 (10:55 +0000)]
Outliner/Datablocks view: IKEY/Alt-IKEY Hotkeys work for Inserting/Deleting keyframes via KeyingSets

10 years agoAnim-Channel Filtering: If an object only has animation-data attached to one of its...
Joshua Leung [Wed, 25 Feb 2009 10:27:08 +0000 (10:27 +0000)]
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!

10 years ago2.5
Ton Roosendaal [Wed, 25 Feb 2009 09:54:41 +0000 (09:54 +0000)]
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.

10 years ago2.5
Ton Roosendaal [Wed, 25 Feb 2009 09:36:25 +0000 (09:36 +0000)]
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.

10 years agoAdded return statements to a couple of functions that didn't have
Kent Mein [Tue, 24 Feb 2009 16:51:55 +0000 (16:51 +0000)]
Added return statements to a couple of functions that didn't have
them and removed an extra ;

Kent

10 years agoMade animation-editor copy/paste operators use reports-api for reporting errors inste...
Joshua Leung [Tue, 24 Feb 2009 11:23:04 +0000 (11:23 +0000)]
Made animation-editor copy/paste operators use reports-api for reporting errors instead of console prints.

10 years agoDopeSheet/Graph Editors: Restored Copy/Paste operators
Joshua Leung [Tue, 24 Feb 2009 11:18:24 +0000 (11:18 +0000)]
DopeSheet/Graph Editors: Restored Copy/Paste operators

The channel-matching code when pasting still needs improvements to work really nicely...

10 years agoAdded rna timeline to cmake build
Nicholas Bishop [Tue, 24 Feb 2009 03:14:57 +0000 (03:14 +0000)]
Added rna timeline to cmake build

10 years agoGave RNA to timeline markers. Updated both Scene and Action RNA for standard and...
Roland Hess [Tue, 24 Feb 2009 03:06:23 +0000 (03:06 +0000)]
Gave RNA to timeline markers. Updated both Scene and Action RNA for standard and pose markers.

10 years ago2.5
Ton Roosendaal [Mon, 23 Feb 2009 17:30:00 +0000 (17:30 +0000)]
2.5

Weightpaint could crash, wrong check for editmode mesh.

10 years ago2.5
Ton Roosendaal [Mon, 23 Feb 2009 16:31:58 +0000 (16:31 +0000)]
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.

10 years agoADR_CODE conversion done for particle systems. Fixed typo in particle rna.
Roland Hess [Mon, 23 Feb 2009 14:55:23 +0000 (14:55 +0000)]
ADR_CODE conversion done for particle systems. Fixed typo in particle rna.

10 years agoGraph Editor: Tweaking the drawing of the channel colours for F-Curve channels.
Joshua Leung [Mon, 23 Feb 2009 06:22:47 +0000 (06:22 +0000)]
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.

10 years agobrought back the sculpt buttons in the NKEY panel
Nicholas Bishop [Sun, 22 Feb 2009 22:00:35 +0000 (22:00 +0000)]
brought back the sculpt buttons in the NKEY panel

10 years ago* Added radial control for texture paint (in both view3d and image)
Nicholas Bishop [Sun, 22 Feb 2009 19:31:25 +0000 (19:31 +0000)]
* Added radial control for texture paint (in both view3d and image)
* bugfix: for older files, initialize the brush curve on file load

10 years agoAnimation Editors: Drawing stuff
Joshua Leung [Sun, 22 Feb 2009 09:30:18 +0000 (09:30 +0000)]
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

10 years agoAnimation Editors: Added Tab-Key to toggle editability of selected channels.
Joshua Leung [Sun, 22 Feb 2009 05:55:37 +0000 (05:55 +0000)]
Animation Editors: Added Tab-Key to toggle editability of selected channels.

Ton - Currently, I've had to add a new operator to set this, since it is not possible to specify via keymaps whether the invoke or exec should be called by default for an operator.
(See corresponding mail on 2.5 mailing list for details about this)

10 years agoGraph Editor: Selecting F-Curve channels + keyframes now sets active F-Curve correctly.
Joshua Leung [Sun, 22 Feb 2009 05:34:47 +0000 (05:34 +0000)]
Graph Editor: Selecting F-Curve channels + keyframes now sets active F-Curve correctly.

10 years agoAnimation Editors: Bugfixes for channel selection tools
Joshua Leung [Sun, 22 Feb 2009 04:13:29 +0000 (04:13 +0000)]
Animation Editors: Bugfixes for channel selection tools

* Ctrl-Shift select for Action Groups works again
* Clicking on a channel's data will select it, and also make it the active one in the list now
* Selecting keyframes in F-Curves will select the F-Curve channel too now (+ make it active)

10 years ago2.5
Ton Roosendaal [Sat, 21 Feb 2009 19:17:31 +0000 (19:17 +0000)]
2.5

View3D: background image buttons back. Again nice
to use blend or size or other sliders for live
updates. :)

Note that 'load' doesnt work yet, the operator for
image load only does space-image now.

Also note that with a built-in 4-split option, we
can also encode a way to show 3 different pics.

10 years ago2.5: fix for last commit, for case sensitive OSes.
Brecht Van Lommel [Sat, 21 Feb 2009 18:43:28 +0000 (18:43 +0000)]
2.5: fix for last commit, for case sensitive OSes.

10 years ago2.5
Ton Roosendaal [Sat, 21 Feb 2009 18:33:09 +0000 (18:33 +0000)]
2.5

Useful goodies: most buttons for Image window back.
Not every button works! But what you can do:

- press Nkey to show/hide options
- use curves, with realtime updating
- image properties panel, load, browsing layers,
  setting types
- paint panel
- plus new paint color picker panel! (why it wasn't
  there in 2.4x is probably obvious, but now it can!)

Hrm... radial control should be added here too, and a nice
paint size cursor?

10 years ago2.5
Ton Roosendaal [Sat, 21 Feb 2009 15:31:01 +0000 (15:31 +0000)]
2.5

Support for listview/buttons region in ImageWindow.
Now all code is in this commit :)

10 years agoGraph Editor: NKEY panel - added code to retrieve 'active F-Curve'
Joshua Leung [Sat, 21 Feb 2009 11:22:06 +0000 (11:22 +0000)]
Graph Editor: NKEY panel - added code to retrieve 'active F-Curve'

Currently, this is just used to print the 'name' of the active F-Curve in a panel for verification purposes. This is the recommended way of getting this info.

10 years agoGraph Editor: Started adding the missing NKEY panel stuff
Joshua Leung [Sat, 21 Feb 2009 10:38:58 +0000 (10:38 +0000)]
Graph Editor: Started adding the missing NKEY panel stuff

Only a dummy pannel for now. I'll add some basic examples of relevant buttons + ways to use them soon.

10 years ago* Added back 'Insert Key' operator for DopeSheet editor
Joshua Leung [Sat, 21 Feb 2009 05:04:12 +0000 (05:04 +0000)]
* Added back 'Insert Key' operator for DopeSheet editor
* Fixed button spacing problems in TimeLine

10 years ago2.5 - Fixed compiling for scons + mingw
Joshua Leung [Sat, 21 Feb 2009 03:26:03 +0000 (03:26 +0000)]
2.5 - Fixed compiling for scons + mingw

jesterKing: please check on this, since it seems to be basic typos only? See my mail to the list for details of the error.

10 years ago2.5 / Scons | Building on 64bit Windows
Nathan Letwory [Fri, 20 Feb 2009 22:08:02 +0000 (22:08 +0000)]
2.5 / Scons | Building on 64bit Windows
* add preliminary support for building Blender on 64bit Windows with _msvc_. The SConstruct should automatically detect if you are on a 64bit Windows and if you have that 64bit build is assumed. If you're not, 32bit build is assumed.
  NOTE: this is still very much wip, so your mileage may vary. Do please report on b25 taskforce ML in case of trouble.
  NOTE2: many of the libs are being linked in statically
  NOTE3: hopefully I didn't break anything for other build platforms (mingw, linux, osx).
  NOTE4: comes after NOTE3

10 years ago2.5: Fix build temporarily, seems there was a file missing
Brecht Van Lommel [Fri, 20 Feb 2009 20:43:22 +0000 (20:43 +0000)]
2.5: Fix build temporarily, seems there was a file missing
in the graph properties panel commit. Ton, please check.

10 years ago2.5: Particle Edit, work in progress commit.
Brecht Van Lommel [Fri, 20 Feb 2009 20:39:27 +0000 (20:39 +0000)]
2.5: Particle Edit, work in progress commit.
* Still incomplete and some operators don't work, refresh issues, etc.
* Made Hide/Reveal operators consistent for various modes.

10 years ago2.5
Ton Roosendaal [Fri, 20 Feb 2009 19:11:35 +0000 (19:11 +0000)]
2.5

Graph Editor: added region for buttons (properties), so we can
check drivers again! Works like view3d, press NKEY. No buttons
there yet though... no time anymore today, it'll require some
RNA magic probably.

10 years ago2.5 - temporary hack hack
Nathan Letwory [Fri, 20 Feb 2009 18:36:27 +0000 (18:36 +0000)]
2.5 - temporary hack hack
#if 0 main body of EdgeSlide for now - 64bit msvc compiler chokes on it.
 - added a goto line combo to make the function complete.

10 years ago2.5
Ton Roosendaal [Fri, 20 Feb 2009 18:01:33 +0000 (18:01 +0000)]
2.5

View3d:

- using layerbuttons in header allows SHIFT for extend
- added operator for layer hotkeys, works as for 2.4x

10 years agoSmall tweak to get cmake working again.
Kent Mein [Fri, 20 Feb 2009 17:20:20 +0000 (17:20 +0000)]
Small tweak to get cmake working again.

Kent

10 years ago2.5
Ton Roosendaal [Fri, 20 Feb 2009 16:39:39 +0000 (16:39 +0000)]
2.5

Animsys bugfix: files didn't read or write all supported animdata
structs yet (key was missing for read, crashing). Now it supports
all 10 implemented ID types:

OB CU KE MA TE NT LA CA WO SCE

10 years ago2.5
Ton Roosendaal [Fri, 20 Feb 2009 16:18:37 +0000 (16:18 +0000)]
2.5

Small fixes for animsys:

- Blender 2.4x allowed drivers to exist without object target, these
  got converted resulting in error prints. Now they get skipped.

- Animdata struct was not created for objects with poses, but without
  action/nla linked.

- An action-channel-constraint-ipo gets inserted in drivers differently
  than a pose-bone-constraint-ipo. Not sure yet how... but it makes a
  different depsgraph relation.
  Error is of course in depsgraph, that'll get tackled. For correct
  driver eval I've made 'object update ob' also been called for
  the 'object update data' tag.

10 years agoDopeSheet/Graph Editor: Restored Duplicate Keyframes operators (Shift-D) for both...
Joshua Leung [Fri, 20 Feb 2009 11:17:33 +0000 (11:17 +0000)]
DopeSheet/Graph Editor: Restored Duplicate Keyframes operators (Shift-D) for both of them

10 years ago2.5
Ton Roosendaal [Fri, 20 Feb 2009 10:39:31 +0000 (10:39 +0000)]
2.5

Bugfix: on closing wm, it was using a free'd pointer to screen.

10 years ago2.5 Userprefs/Themes version patching
Joshua Leung [Fri, 20 Feb 2009 06:30:47 +0000 (06:30 +0000)]
2.5 Userprefs/Themes version patching

Brought back many missing conversions. Dunno why so many of them weren't present.

10 years agostarted RNA-ifying scene->render data
Matt Ebb [Fri, 20 Feb 2009 06:05:00 +0000 (06:05 +0000)]
started RNA-ifying scene->render data