10 years agosmall fix of wrong opslot name
Joseph Eagar [Mon, 23 Mar 2009 00:28:05 +0000 (00:28 +0000)]
small fix of wrong opslot name

10 years agoremoved all those nasty enums from the operator api. yay! I'm
Joseph Eagar [Sun, 22 Mar 2009 23:16:43 +0000 (23:16 +0000)]
removed all those nasty enums from the operator api.  yay! I'm
so happy.  so now operators and their slots are referred to by
string names.  so much easier to remember!

10 years ago-> Fixed crasher in extrude code
Geoffrey Bantle [Sun, 22 Mar 2009 01:58:43 +0000 (01:58 +0000)]
-> Fixed crasher in extrude code

New extrude code was accessing an uninitialized
variable. Why this sort of thing doesn't cause
crashes on windows, I dont have a clue!

Note for Joe: I see a lot of 'logic' going on in
the client code for extrude that should possibly
put inside the BMOP system itself (aside from the
part about modifiers). This should be cleaned up
in future maybe...

10 years agofixed issue in connect vert, had to make a numerical error compensation value absurdl...
Joseph Eagar [Wed, 18 Mar 2009 17:30:33 +0000 (17:30 +0000)]
fixed issue in connect vert, had to make a numerical error compensation value absurdly high for some reason I need to investigate.  also removed constraints to produce nice tesselations from the ear clipper, since it doesn't really matter for what we do with it.

10 years agomade editmesh use mempools, though editmesh customdata does not. this was a major...
Joseph Eagar [Mon, 16 Mar 2009 14:52:30 +0000 (14:52 +0000)]
made editmesh use mempools, though editmesh customdata does not.  this was a major slowdown in bmesh<-> editmesh conversion (even more so then the mf euler, which may not be that bad after all).

10 years agoedge subdivide ops now use bmesh code, rather then just the test bmesh op. also...
Joseph Eagar [Mon, 16 Mar 2009 14:15:18 +0000 (14:15 +0000)]
edge subdivide ops now use bmesh code, rather then just the test bmesh op.  also, got bmesh edge subdivide's smooth subdivide mode to work (fractal already worked I think, not sure).

10 years agoextrude region op now does wire vert extrudes too
Joseph Eagar [Mon, 16 Mar 2009 11:38:42 +0000 (11:38 +0000)]
extrude region op now does wire vert extrudes too

10 years agosome cleanup of bmesh_polygon.c. there were three winding functions, now there's...
Joseph Eagar [Mon, 16 Mar 2009 10:12:52 +0000 (10:12 +0000)]
some cleanup of bmesh_polygon.c.  there were three winding functions, now there's just one, the original testedgeside, that has some additional tests that might fix some issues I was having.  still need to decided if bmesh_polygon.c stuff should be entirely double or entire floats, right now there's a little half-and-half going on.

10 years agosome fixes for extrude, to better handle customdata, winding, etc.
Joseph Eagar [Mon, 16 Mar 2009 09:43:47 +0000 (09:43 +0000)]
some fixes for extrude, to better handle customdata, winding, etc.

10 years agosome fixes for extrude, to better handle customdata, winding, etc.
Joseph Eagar [Mon, 16 Mar 2009 09:41:33 +0000 (09:41 +0000)]
some fixes for extrude, to better handle customdata, winding, etc.

10 years agohad to increase size of a numerical error compensation value, kindof odd but works
Joseph Eagar [Sun, 15 Mar 2009 06:14:03 +0000 (06:14 +0000)]
had to increase size of a numerical error compensation value, kindof odd but works

10 years agoconnect verts now does geometric tests to perform valid splits. it also supports...
Joseph Eagar [Sat, 14 Mar 2009 13:16:35 +0000 (13:16 +0000)]
connect verts now does geometric tests to perform valid splits.  it also supports multiple splits in a face, going around the face boundary in a loop and performing splits.

10 years agofurther code comments. used a somewhat minimilistic style for the function comments...
Joseph Eagar [Sat, 14 Mar 2009 02:52:16 +0000 (02:52 +0000)]
further code comments.  used a somewhat minimilistic style for the function comments, so people won't hate me.

10 years agoDissolve faces now uses a different method of finding the boundary,
Joseph Eagar [Fri, 13 Mar 2009 13:11:50 +0000 (13:11 +0000)]
Dissolve faces now uses a different method of finding the boundary,
that handles some non-manifold situations better without failing.
Also made edge subdivide use a more specializzed internal version
of BM_Connect_Verts, that should hopefully always split the correct face.

Dissolve verts also now has checks to not accidentally dissolve
unselected vertices.  It's not kindof a hybrid tool, using dissolve
faces where it can to dissolve verts for robustness, and using
BM_Dissolve_Verts where it cannot.

And removed some cruft from a few API functions.

10 years agothe make ngon function's overlap test needed some work, the API function
Joseph Eagar [Thu, 12 Mar 2009 03:55:53 +0000 (03:55 +0000)]
the make ngon function's overlap test needed some work, the API function
that does that needed to be split in two. this made dissolve faces sometimes
not work.

also added some api functions to recalculate normals for verts, edges and
faces.  and added a new flag, BM_NONORMCALC, to prevent this from happening
on individual fgon faces after they are tesselated.  and made dissolve faces
happen on fkey in all the selection modes, not just face select.

10 years agonumerical error fix for tesselator
Joseph Eagar [Wed, 11 Mar 2009 06:04:17 +0000 (06:04 +0000)]
numerical error fix for tesselator

10 years agoimplemented an (edge) loop walker. note I misunderstood
Joseph Eagar [Wed, 11 Mar 2009 05:13:36 +0000 (05:13 +0000)]
implemented an (edge) loop walker.  note I misunderstood
how original edge loop worked, and made it so if it starts
at a boundary edge, it walks across the boundary.  I'm not
sure if this is bad, most of the time I do that I want it
to do that anyway.

10 years agofixed some dissolveverts/faces bugs and added a few hackish fixes for some others...
Joseph Eagar [Mon, 9 Mar 2009 15:15:17 +0000 (15:15 +0000)]
fixed some dissolveverts/faces bugs and added a few hackish fixes for some others, so they don't crash

10 years agofixed triangulator.
Joseph Eagar [Mon, 9 Mar 2009 13:24:37 +0000 (13:24 +0000)]
fixed triangulator.

10 years agosplit bmesh_operators.h, added (some) docs in comments, and hopefully made it less...
Joseph Eagar [Mon, 9 Mar 2009 10:38:36 +0000 (10:38 +0000)]
split bmesh_operators.h, added (some) docs in comments, and hopefully made it less messy.  also added op names and slot names in comments next to their BM_XXXX_XXX definitions in bmesh_operators.h.

10 years agodissolve faces: errors-out on holes, preserves winding, and doesn't delete original...
Joseph Eagar [Mon, 9 Mar 2009 09:52:32 +0000 (09:52 +0000)]
dissolve faces: errors-out on holes, preserves winding, and doesn't delete original face if no dissolving happened.  the conversion from/to editmesh now counts selected elements properly.

10 years agook anoter compile fix
Joseph Eagar [Sun, 8 Mar 2009 16:55:06 +0000 (16:55 +0000)]
ok anoter compile fix

10 years agocompiler fix part 1
Joseph Eagar [Sun, 8 Mar 2009 16:50:11 +0000 (16:50 +0000)]
compiler fix part 1

[[Split portion of a mixed commit.]]

10 years agoGot the walker API to work, for safely recursing the mesh.
Joseph Eagar [Sun, 8 Mar 2009 15:02:49 +0000 (15:02 +0000)]
Got the walker API to work, for safely recursing the mesh.
Used it to implement the dissolve faces operation (previous
incarnation was just a debugging hack).  The code works by
creating one giant new face per region of faces.

The dissolve verts (xkey->collapse, heh need to rename it)
operator now invokes dissolve faces on the faces around verts.
This is less error-prone then a pure topological/euler based

10 years agomerge with 2.5 at 19207, plus some half-finished walker stuff
Joseph Eagar [Sun, 8 Mar 2009 08:03:27 +0000 (08:03 +0000)]
Merge ... 2.5 at 19207, plus some half-finished walker stuff

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/ 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/ 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

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))

(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/ 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)]

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)]

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)]

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)]

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 ;


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)]

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)]

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