Blender Git Loki

Blenderin Git "master"-kehityshaaran kommitit.

Page: 5517 / 5574

Revision 00f11bf by Roel Spruit
October 25, 2003, 09:41 (GMT)
Fixed bug in Loop Subdivide preview line (cause a crash)
Revision f90a2c3 by Roel Spruit
October 25, 2003, 00:37 (GMT)
Final (hopefully) commit for faceloop select and loop subdivide

Loop Select:

Selects a row (or loop) of faces in a mesh, keeps searching till it
finds a loop (End face == Start Face) or till it finds a dead end.

Loop Subdivide:

Searches for the same row/loop as loop select but inmediately
splits it in half.

Usage:
- Loop select:
Shift-R (or select->faceloop)
move mouse over mesh to see preview of selection
LMB to confirm selection, RMB or ESC to cancel

- Loop Subdivide:
Ctrl-R (or Mesh->Edges-> Loop Subdivide)
move mouse over mesh to see preview of the newly cut loop
LMB to confirm selection, RMB or ESC to cancel


Please test! (besides, it's fun to play with :)

Roel
October 25, 2003, 00:11 (GMT)
I did one commit, but two logs!

- another click at pulldown menu doesnt close it anymore (annoying!)
- the order of Menus (from buttons) now is correctly flipped if needed
- had a LOAD of work on getting matrix code in interface.c cleaned up...
there was still a bug with automatic flipping of menus to prevent them
going outside the screen. should be solved now
- fixed crash: add new screen didnt work...
October 25, 2003, 00:08 (GMT)
First commit of a new toolbox system.

Aim was to find a simple & easy system, script alike, to add and configure
a toolbox system, so that others can experiment, but also of course Python.

Summary:
- spacebar calls it up. SHIFT+A still does old toolbox
- hold left or rightmouse for 0.4 second, and it pops up as well
this is experimental! Can be tweaked with Userdef var "ThresA"
- it is a little bit complete for Object mode only. Needs still work
at information desing/structure level
- the code works like an engine, interpreting structs like this:

static TBitem addmenu_curve[]= {
{ 0, "Bezier Curve", 0, NULL},
{ 0, "Bezier Circle", 1, NULL},
{ 0, "NURBS Curve", 2, NULL},
{ 0, "NURBS Circle", 3, NULL},
{ 0, "Path", 4, NULL},
{ -1, "", 0, do_info_add_curvemenu}};

- first value is ICON code,
- then name
- return value
- pointer to optional child

last row has -1 to indicate its the last...
plus a callback to event function.

I also built an old toolbox style callback for this:

static TBitem tb_object_select[]= {
{ 0, "Border Select|B", 'b', NULL},
{ 0, "(De)select All|A", 'a', NULL},
{ 0, "Linked...|Shift L", 'L', NULL},
{ 0, "Grouped...|Shift G", 'G', NULL},
{ -1, "", 0, tb_do_hotkey}};

here the return values are put back as hotkeys in mainqueue.

A mainloop can do all context switching, and build menus on the fly.
Meaning, it also allows other designs such as radials...
October 24, 2003, 17:08 (GMT)
Exppython: fixed crash caused by linking to a scene objects with NULL obdata, caused by recent (2.28c) internal changes to avoid unneded creation of obdata.
October 23, 2003, 23:44 (GMT)
Annotation of the BGL module - small clarifications about Buffer class
October 23, 2003, 23:17 (GMT)
Annotation of the BGL module
October 23, 2003, 22:28 (GMT)
- added ifdef INTERNATIONAL for changes in interface.c
- changed switching to smaller/larger fonts, it now does only 1 pnt size.
with standard font (11), medium is 10, small 9
October 23, 2003, 22:20 (GMT)
there was a function prototype missing from interface.c that caused an error with MSVC.
October 23, 2003, 18:25 (GMT)
- AntiAlias fonts (FTF) now are used in three sizes, like the normal
fonts, and switched based at the window zoom.

Might be something to tweak when to switch exactly, but it works
cool!
October 23, 2003, 16:52 (GMT)
- added Panel for 'anim playback settings'
- removed draw rect from avi coded settings (should become label but)
- changing texture settings, now also updates lamp/material/world
preview when thats open
October 23, 2003, 16:15 (GMT)
Cleaned up new constraint line drawing while grab/rot/scale

- uses callback mechanism to tell main drawing routine what to do
- for that reason it doesn't use frontbuffer drawing anymore
and it shows up in all 3d windows as well
- it uses the same colors as for the grid axes (I tweaked it a bit,
this is based at themecolors, and also should work in different
background and grid color)
- I disabled drawing lines through every object or every vertex.
The current display method is clear and not distracting
- when in 'local' transform (double press X/Y/Z), it displays a nice
axis in the center of transform for vertices.
In object-mode, local transform differs per object, so constraint lines
and axes are drawn for each individually...

Also:

- fixed an old bug in rotate transform(). Using a constraint for
rotation (X, Y, Z) didn't work for multiple objects at all!
October 23, 2003, 11:00 (GMT)
- fixed drawing of headers... they align now exactly with the 1 pixel
black edge between 'area windows'.
the new ortho matrix seems to work for me... :)
October 23, 2003, 10:23 (GMT)
- changed ortho2 calls by default... according the 'opengl correctness'
chapter in 'opengl programming guide' you have to offset the matrix
with 0.375 for exact & predictable cross platform pixel drawing.
Blender used 0.5....

Committed for test among platforms... if you see weird drawing results
(like polygons not aligning good with lines) just notify me.
October 23, 2003, 09:38 (GMT)
- <blush> forgot to delete an old line:
if(R.mat->septex) break;
this caused the new per-channel switching only to work with 2 textures!
October 23, 2003, 06:34 (GMT)
Adjusted Layout in texture, texture_plugin, and texture_mapto panels.
October 23, 2003, 02:42 (GMT)
BugFix: do_global_buttons() was split into do_global_buttons() and do_global_buttons2(),
but do_butspace() still routed events for do_global_buttons2() to
do_global_buttons(). This kept a lot of "Single User" buttond from working.
October 22, 2003, 23:20 (GMT)
- themed all window types... phew!
BTW: text colors don't work everywhere yet... but this state should
be save to store themes in your .B.blend (CTRL+X)

and some fixes:

- leftmouse click now works in NLA and Action window to select a
strip in the left part
- faceselect+vpaint mode didnt show both panels
October 22, 2003, 23:17 (GMT)
Small constraint loop detection and calculation fix that now allows two objects to track each other (normal track or LockTrack).
This is done by disabling the object position refresh call when calculating these constraints. From the tests I did, this doesn't cause any problem at all.

The main point of this is to create pistons and the like.

For coders:

the detect_constraint_loop function now takes an additional parameter that determines the constraint type of the object it's looping from.
October 22, 2003, 22:13 (GMT)
fixed a warning that slipped by :|
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021