Commit Graph

3524 Commits

Author SHA1 Message Date
Martin Poirier
9efe92bbaa Matrix multiplcations for Multiple Object local constraints for Resize was done backward. Didn't show in my test case because they were too crude. Fixed now. (in essence, resize with multiple selected objects and local constraint was not good) 2005-03-14 23:24:37 +00:00
Jean-Luc Peurière
3ca88c4e7f ome more warnings cleaning 2005-03-14 20:10:22 +00:00
Ton Roosendaal
7e2e2b2370 Bugfix #2324
Somehow, not proven how, edges can be selected in a mesh, and not faces or
vertices. When entering editmode these selection flags are checked too.
2005-03-14 20:09:57 +00:00
Kent Mein
ecf6de151c This commit reverses the OpenEXR specific stuff in the OpenEXR commit I
did last friday.  A patch will be available in the patches tracker
that will have the current stuff there until everything is working.

Kent
2005-03-14 14:56:40 +00:00
Ton Roosendaal
cce74ab4d0 Transform: brought back axis constraint default after extruding. When
choosing 'individual faces' it uses the ShrinkFatten option.

Note for Martin: center of axis is still wrong, but you know!
Note for non-testers: unfortunately axis constrainting for old
transform now doesn't work anymore. New code is much nicer, I dont restore
hacks!
2005-03-14 14:16:59 +00:00
Martin Poirier
fd4ad35d4c New AFFECTALL flag for numinput
When that flag is set, numbers typed when the cursor is on the first position will affect all positions who do not currently have something typed for them.

Enabled Skey, 2, Enter to quickly double the size of something.

All modesty asside, it's coded rather smartly so it shows the cursor in every position that it will affect and lets you tab in undefined position to type in values there.

Thanks to Samadam for reminding me that the old code permitted that.
2005-03-13 21:42:22 +00:00
Martin Poirier
60b0e67e32 Fixed edit mode armature bug reported by Gabio (transdata conversion wasn't setting data center correctly).
Brought back Shrink/Fatten. Changed the behavior a bit, move the cursor to the right to move toward the normal, to the left to move backward. Please comment.
Only works with meshes, defaults to resize otherwise.
2005-03-13 20:17:39 +00:00
Ton Roosendaal
e76a63635b Transform:
Camera grab from camera mode works, but not the middlemouse-toggle, that
has to become a new "Dolly" constraint coded by Martin P! :)
2005-03-13 19:48:17 +00:00
Stephen Swaney
8c564af147 A little editing on the doc for the newest member of our Bpy module familily: Text3d. 2005-03-13 13:17:59 +00:00
Martin Poirier
7d520a16c4 Made warp use TransData members instead of G.obedit. Made it work with PET and Objects at the same time. 2005-03-13 02:15:32 +00:00
Martin Poirier
597cbb1b4f Local axis with multiple objects wasn't working for Scaling.
Also, splitted of Translation's applying loop (for eventually macro interface).
2005-03-12 23:15:26 +00:00
Martin Poirier
8f47841536 NumInput is now applied correctly to constraints and prints correctly in the header.
What that means is that you can grab/resize an object, press Xkey, type 2 (to resize/move by 2 on the x axis) and then press Ykey and the numeric value will be applied to the transformation on the Y axis.

Fixed a small glitch where constraint center wasn't readjusted for edit mode when using MMB (graphical bug only).
2005-03-12 20:34:02 +00:00
Kent Mein
48b4329170 *sigh* I obviously rushed this. I honestly thought that this commit would
not affect anyone.

Changed:
if user_openexr == 'false':
	defines += ['WITH_OPENEXR']

To what it was suppose to be:
user_openexr = 'false':
if user_openexr == 'true':
	defines += ['WITH_OPENEXR']

This was messed up on most platforms, somewhere when adding them all
I switched to the bad version and continued with that...

I'm on irc if anyone else has any commits to clean this up.  I'm going
through things and trying to make sure its working for everyone.

Sorry,

Kent
2005-03-12 16:32:32 +00:00
Ton Roosendaal
d3202c5fcc Added a #ifdef WITH_OPENEXR around this entire file. It doesn't compile for
Makefiles otherwise...
2005-03-12 13:37:05 +00:00
Joilnen Leite
4aeaa7a7a2 doc about set/getDupliVerts method
.
2005-03-12 12:31:33 +00:00
Ton Roosendaal
1f284bb583 Bug fix as reported by Fish-Face/Chris Le Sueur on IRC
After deleting an object, the call free_and_unlink_base() takes care of
NULLifying object pointers. But, with exception of constraints. Silly!!!

So, in the end of a function additionally the test_scene_constraints()
has to be called to prevent crashes. This was missing in join_mesh and
convert_object.
2005-03-12 12:10:07 +00:00
Joilnen Leite
e1e6b10488 added getDupliVerts and setDupliVerts methods
.
2005-03-12 11:38:51 +00:00
Daniel Dunbar
f8a8f355b5 - made makesdna print how many bytes of padding should be added in
a struct on alignment errors, simplifies fixing.
2005-03-11 21:20:33 +00:00
Daniel Dunbar
18c01053cb - dna_error wasn't set on two errors in makesdna, allowed bad compilation 2005-03-11 21:15:20 +00:00
Kent Mein
a1919e6db4 Gernot Ziegler's patch to add OpenEXR support to blender.
To enable it you will need to download OpenEXR and install it.
For the Makefiles you will need to set WITH_OPENEXR=true
and set NAN_OPENEXR to point to where OpenEXR is installed.

For scons you'll need to remove config.opts to get the new options
so you can enable OpenEXR, I was not able to get blender to link
with scons so the scons stuff may need to be tweaked a little but
I think it should work.

For other platform managers  The OpenEXR stuff is similar to QUICKTIME
you need to define WITH_OPENEXR and setup the library stuff and
as you'll notice in this commit there are two extra files.

Kent
2005-03-11 20:16:14 +00:00
Ton Roosendaal
c6d5124560 Bug fix 2301
Halo render had too narrow clipping for left/right or top/bottom part of
image. Was caused by fix for 2.36, incorrect clipping for distance...
distance was OK, but the old hack should be still there for X or Y clip!
2005-03-11 18:55:09 +00:00
Martin Poirier
8129e55940 It's fun to set flags correctly and not have everything crash down on you. 2005-03-11 18:48:14 +00:00
Ton Roosendaal
409e0a5c82 Bug fix 2309
Move calls to exit editmode and posemode to "set_scene()". Was causing
errors when, in posemode, switching to empty scene.
2005-03-11 18:24:15 +00:00
Kent Mein
7a0e2a012c Found some messed up code that assumed abgr instead of rgba
In IMB_gamwarp which is used by the blur sequence plugin.
It should be fixed now.  Also fixes a warning with gcc.

Kent
2005-03-11 13:00:31 +00:00
Martin Poirier
3bc2ae130d IMPORTANT NOTE: Locking axis (planar constraints) now works with ALT instead of CTRL. Ctrl might have caused problems in the long run, with people holding down ctrl for precision and then having to release it so to press an axis key if they don't want to lock it.
Finish adding local constraints for multiple objects: One of the objects will have its axis highlighted lighter than the others. You control this one with your mouse and the others copy the motion on their respective axis.

Code changes: the TD_OBJECT flag is now a flag in TransInfo with the new T_POSE, T_EDIT and T_TEXTURE
2005-03-11 01:33:43 +00:00
Ton Roosendaal
cce375fa92 Bugfix 2062
Stringcopy to a buf[32] without checking stringsize caused errors.

All credits for Martin P who found it. I'm assistant-committer. :)
2005-03-10 20:29:28 +00:00
Joilnen Leite
53b578d090 Text3d submodule document
.
2005-03-10 02:49:27 +00:00
Martin Poirier
d9e320b270 MSVC 6.0 Projectfile addition (include path) to compile after the big warning hunt commit. 2005-03-09 23:29:19 +00:00
Ton Roosendaal
cd3b11f41e - Added more space in icons image (blenderbuttons.png)
It now only uses 1 extra row of 21 buttons. More can simply be added
- Added new icons for the new proportional edit options Root, Linear and
  Constant
- Made sure pulldown and pop-up menu work for new prop options

- Transform fix; proportional edit circle was drawing in Object mode
2005-03-09 21:10:30 +00:00
Ton Roosendaal
eab9fc4c0b Upgraded buttons image 2005-03-09 21:04:09 +00:00
Jean-Luc Peurière
c78e44cdc5 big warning hunt commit
lot of casts, added prototypes, missing includes and some true errors
2005-03-09 19:45:59 +00:00
Ton Roosendaal
77d44e88e9 Transform project; restored "auto key" after transform. It now inserts
always loc/rot/size ipos. The old method had a quite questionable
heuristic for detecting what changed, not sure if we want it back.

Added note in code, good candidate for later recode with dep graphs.
2005-03-09 19:32:23 +00:00
Ton Roosendaal
3e5200f1db - Restored 'align mode', which allows rotate/scale with only object centers
- commented out debug prints from theeth :)
2005-03-09 16:58:42 +00:00
Joilnen Leite
7968cf078e doc about Text3d module
.
2005-03-09 02:06:35 +00:00
Daniel Dunbar
0cb8cac4d3 - replaced min() by MIN2() and max() by MAX2()... my bad. 2005-03-08 19:31:16 +00:00
Daniel Dunbar
5936870006 Bug fix #2296
- Background image would jitter around on ATI card when zoomed in too
   far. It appears that the driver is was multiplying the image width
   by the zoom factor at some point and clamping this number, before
   clipping the visible image. Somehow this then fed back in to clipping
   the zoom factor.

   Fix is to only tell GL to draw the smallest number of pixels (width
   and height) that would be visible on the screen. Since this is not
   a generally bad thing to do applied fix for all users of
   glaDrawPixelsSafe.
2005-03-08 19:27:58 +00:00
Daniel Dunbar
af092210db - switch draW_bgpic to calculate window coordinates as floats, smoother
zooming of background pic now.
2005-03-08 19:18:40 +00:00
Daniel Dunbar
a26d91fddf - replaced call to project_short_noclip with direct implementation
because project_short_noclip doesn't do the calculation if
     the value would be near-clipped. For background picture we
     don't care about this.
2005-03-08 18:58:27 +00:00
Ton Roosendaal
8eef3cfd9c New transform project;
- restored 'Warp' (Shift+W). Should work like before, including type mode
  and holding ctrl/shift modifiers
- added CTRL event in queue, to only redraw when you press it. looks nicer.
2005-03-08 17:29:33 +00:00
Martin Poirier
81ea38cd10 + Local axis constraint for multiple object selection works with resize and rotate (the easiest).
+ Refined the headerprint for Translation. Now prints only the needed info for constraint in the constraint's space (ie: if you're moving 1 unit along the local X axis, regardless of it's orientation, it will print "D: 1.000 along local X")
Still need to make numinput work like that (typing a number with a local axis constraint would move along that axis. There's some base code already though, just need a finishing touch, but it's late now)

+ Optimised PET calculations by using the TD_NOACTION flag (actually, that might have been in the last commit).

+ Added a float axismtx[3][3] member to TransData to store the orientation of the element (useful for local axis constrainst which, in edit could be moving along normals and the like).

- Fixed scaling in edit mode (was doing some matrix multiplications in the wrong order, only visible when using a constraint)

- Fixed the constraint projection matrix. It didn't work for planar constraint if the constraint space wasn't global (in a nutshell, it produced weird results for local space planes).

- Some potential bugs fixed (Note to Ton: added an ext pointer in TransInfo to point to the TransDataExtension block. With the sort done after allocation, the first td pointer doesn't necesarely point at the start of the ext block, so we needed another to free it correctly).

- Got rid of some remaining test with G.obedit.

- Moved constraint reset from init to post trans code (Ton, that means you can create constraints before calling transform, like for the menus for example).

NOTE:

I was getting some random segfault with the new headerprint code. Very random, couldn't reproduce with a debug version. I did some initialisation that might have been missing (though doubtful that's what caused the crashes). Was linked to using constraint though not caused by them. Probably due to some dumb late coding error.
2005-03-08 03:51:45 +00:00
Joseph Gilbert
03b70c9bf5 Changed a CRTL dependency for the debug build which generates a linker warning about missing output file which forces a full incremental link. 2005-03-07 16:32:17 +00:00
Chris Burt
23eb4780bf Tooltips for new marble buttons were from a copy/paste operation. This
caused error with... well... tooltips. ;) First commit!
2005-03-07 15:26:32 +00:00
Johnny Matthews
9e52a14894 Solves a build problem with MSVC scons build. Thanks kaito for pointing out the Black box of BLI_winstuff 2005-03-07 14:48:13 +00:00
Ton Roosendaal
d6f6d13f3a Bug fix #2292
Bumpmaps for skin on Env's dinosaurs appeared to be less nice in 2.36. This
was caused by the bugfix to make bumpmapping correct for rotations, which
should only work for flat/cube mapping. It also rotated it for sphere/tube
though, which gives less interesting bumps.

So; now the correction is skipped for tube/sphere mapping bumping.
2005-03-07 12:41:23 +00:00
Ton Roosendaal
fb94fcd4e7 Patch provided by Chris Burt;
Wood/marble now have three waveforms to choose from: Sine, Saw and Triangle.
The Saw wave allows for much more realistic wood, especially in combination
with a ColorBand. A blender3d.org release page is being constructed about it.

Added: commit in editmesh_add.c to remove circle warning in face-select mode.
2005-03-07 11:01:43 +00:00
Stephen Swaney
a1f97a01e4 fix warnings about implicit declarations.
overlooked by being in a hurry.
2005-03-07 03:31:14 +00:00
Martin Poirier
7b081fe3b7 Local axis constraint started.
Works with edit data and in object mode with single selections (only one object selected).

Also started adding constraint stuff in headerprints. Only for Translation for now.

Pressing X,Y,Z (and the Ctrl versions) toggle between global, local and off like it used to do.
2005-03-07 02:21:04 +00:00
Joseph Gilbert
b3b96acc73 -Added Text3D module to project files 2005-03-07 01:17:54 +00:00
Ton Roosendaal
b6cb442c2a Fix & further implementation of Proportional editing;
- made generic 'calc distance' function for it
- added generic call to sort TransData with selection first, for speedup
  of propmode calculus
- removed most propmode exceptions from code, only used for counting now
- all editmode transdata conversion function structured identical
2005-03-06 19:25:58 +00:00
Simon Clitherow
a14d5c57be Added new bpy files to MSVC 6 project files. 2005-03-06 16:57:17 +00:00