Commit Graph

8450 Commits

Author SHA1 Message Date
Martin Poirier
c7ac42403e fix mix of declaration and instructions (it would choke MSVC) and add missing
return type.
2007-07-29 22:35:35 +00:00
Jean-Luc Peurière
6fd555a4cc tweak of parameters following Martin report
also update view type so that grid follow
2007-07-29 21:48:26 +00:00
Jean-Luc Peurière
bfa77f611f more work on the ndof system.
turntable code should work reasonabilly well now.
fly code need works but is no more insane on Os X.
transform object is not present here.

if you find the movements a bit slow, you can speed
it in the preferences up to 2x in the view & controls
panel.

button1 (left) of the device let you switch between
the 3 modes. button2 let you switch between 
unconstrained and dominant mode.

the plugin must be named 3DxNdofBlender.plug
and be placed in a folder named plugins in same
folder as executable

check no scaling is done in the plugin

please check it works ok on 3 platforms
2007-07-29 18:03:36 +00:00
Jean-Luc Peurière
288e07b649 commiting new viewmovendof code from sfgoros
as this is not working code for me,
and i've not investigated yet why,
i protected it with a define in view.c

line 566 USE_NEW_NDOFMOVE

comment this line to use old code
2007-07-22 14:09:01 +00:00
Jean-Luc Peurière
256de79f51 commiting ettore fourth patch (plugin path) 2007-07-18 21:16:07 +00:00
Jean-Luc Peurière
edc6512ba6 first workable version on Os X
work only in non camera mode in 3D view

need the external plug-in to be compiled separately

line 894 of ghostwinlay.c must be replaced with
values adapted at your system

see mailing list for features planned and how
to use
2007-06-12 20:01:28 +00:00
Jean-Luc Peurière
6cc1269d97 merge from trunk up to rev [10858]
WIP in the NDOF part, dont work yet
2007-06-02 21:42:54 +00:00
Johnny Matthews
c6158b9293 Put declarations at the top of the block to save some compile problems. 2007-06-02 13:46:16 +00:00
Joshua Leung
aad39edee7 == Action Editor - IKEY ==
Modified behaviour of IKEY in Action Editor a bit, so that the keyframes added have been updated to reflect the current state of an object/bone. Previously, it only used the current values of the ipo-curves they were being keyframed (maintained as fallback method now).
2007-06-02 04:09:10 +00:00
Campbell Barton
f579a66d7b made change to NMesh decrefing suggested by theeth, and added 2 more missing decrefs in new_NMFace 2007-06-02 02:02:33 +00:00
Campbell Barton
228e927c04 pointInside wasnt working properly (did work with the examples I was using with many small faces) 2007-06-02 00:31:20 +00:00
Brecht Van Lommel
b726b64ead Fix error in the version patch for the SSS scene flag. 2007-06-01 16:53:55 +00:00
Joshua Leung
84ec2711ac == NLA Editor ==
When adding a new Action Strip to an Object which didn't have any Action Strips previously, NLA-override mode is turned on by default for that object (the Action/NLA-icon beside the expand/collapse triangle).
2007-06-01 10:38:17 +00:00
Jens Ole Wund
16f4953230 surface objects are allowed to be softbodies too 2007-06-01 09:20:46 +00:00
Campbell Barton
f0fe6833db when removing py_build value I removed this but shouldnt have, however theres no need to parse the value in Blender_Redraw since its done in the Window module. 2007-06-01 05:54:16 +00:00
Campbell Barton
3d6f9b804f buttons editing didnt let lib-obdata to changed once set (thanks for the report broken)
NMesh (error in last commit).
2007-06-01 02:48:36 +00:00
Campbell Barton
f19b56a541 When converting from TF_SELECT to use the mfaces selection flag only I missed getSelectedFaces.
This broke theeths UV-Exportscript.
updated and added 2 missing decref's, as well as a check not to write a list of faces greater then the size of the NMesh (mesh and NMesh face lengths can differ)
2007-06-01 02:33:23 +00:00
Nicholas Bishop
1a9f0e692a == Multires ==
* Moved the multires vertex data from struct MultiresLevel to struct Multires. There's no longer any reason to store data seperately for each level; it was just taking up extra memory.

* Incremented the subversion to 2 and adjusted do_versions to correctly load older files.

* Refactored the multires update process (which handles propagating changes to other levels)
2007-06-01 02:21:11 +00:00
Jens Ole Wund
9d0f746580 test commit
knit picking users complained about available options
with non softbody able objects
2007-06-01 00:40:52 +00:00
Charlie Carley
a9640819ff Applied patch [#5795] Parent to bone - Supplied by Monster. 2007-05-31 20:40:59 +00:00
Brecht Van Lommel
1347391060 Fix for memory leak:
Manipulator drawing, enabled or disabled, with the exception of the
combo manipulator, was leaking a GLU quadric on every redraw.

I don't think this caused trouble in practical situations though, it
leaked about 1 MB when running Alt+A for 20 minutes here.
2007-05-31 14:02:43 +00:00
Campbell Barton
0ea4607308 scene.camera was missing from docs
bad bad mistake- key wasnt returning IPO's
2007-05-31 13:48:16 +00:00
Joshua Leung
2d8dd194cc == Action Editor ==
Small Action Editor feature to hopefully make keyframing quicker. Just press the IKEY in the Action Editor. Feedback on the (annoyance factor of the) popups welcome.
2007-05-31 11:47:04 +00:00
Mal Duffin
57a91d7659 Test commit by myself ( whitespace ), just spreading my new Blender commit wings! 2007-05-31 11:20:35 +00:00
Nathan Letwory
1badf04923 === SCons ===
FINALLY! With this commit command-length problems are History. Thanks go to xuru from #scons for giving the nice pointer.
src is now again one lib, and further libsplitting should be rather unnecessary, unless we somehow reach the 37K limit (for internally used CreateProcess, by subprocess module)
2007-05-31 07:42:54 +00:00
Matt Ebb
270ab2fe18 Fix for invert comp node, was allocating a compbuf unnecessarily. 2007-05-31 07:33:18 +00:00
Matt Ebb
17a219e3c0 == Shader nodes ==
* Geometry node: Front/back output
This is used as a mask for determining whether you're looking at the front side or back side of a mesh, useful for blending materials, my practical need was giving different materials to the pages of a magazine: http://mke3.net/blender/etc/frontback-h264.mov

Give 1.0 if it's the front side, and 0.0 if it's the back side.

* Extended material node
This is the same as the material node, but gives more available inputs and outputs, (basically just connecting up more of ShadeInput and ShadeResult to the node). I didn't want to add it to the normal simple Material node since you don't always need all that stuff, and it would make the node huge, but when you do need it, it's nice to have it.

== Comp nodes ==

* Invert node
Inverting is something that happens all the time in a node setup, and this makes it easier. It's been possible to invert previously by adding a mix node and subtracting the input from 1.0, but it's not the best way of doing it. This node:
 - makes it a lot faster to set up, rather than all the clicking required with the mix node
 - is a lot more usable amidst a complex comp setup, when you're looking at a node tree, it's very helpful to be able to see at a glance what's going on. Using subtract for inverting is easily mixed up with other nodes in which you are actually subtracting, not inverting, and looks very similar to all the other mix nodes that usually litter a comp tree.
 - has options to invert the RGB channels, the Alpha channel, or both. This saves adding lots of extra nodes (separate RGBA, subtract, set alpha) when you want to do something simple like invert an alpha channel. I'd like to add this option to other nodes too.

There's also a shader node version too.


* Also a few fixes that I committed ages ago, but seems to have been overwritten in Bob's node refactor:
 - adding new compbufs to the set alpha and alphaover nodes when you have only one noodle connected to the lower input
 - making the fac value on RGB curves still work when there's nothing connected to it
2007-05-31 06:55:02 +00:00
Joshua Leung
024485b9b8 Patch #6759: this speeds up the vertex group editing workflow a bit.
The hotkey Ctrl-G in EditMode for Meshes and Lattices, brings up a menu giving the user options to assign/remove selected vertices to a new/the active Vertex Group.

The hotkey Ctrl-Shift-G in EditMode for Meshes and Lattices, brings up a menu giving the user options to change the active Vertex Group and delete the current Vertex Group.
2007-05-30 10:36:17 +00:00
Nathan Letwory
86ff85932b * Fix for #6707
This fix is windows specific. AVIs are now evaluated by the pre-FFMPEG code first, failing that only by FFMPEG. Adding the 200 frame testfile from the bugreport http://projects.blender.org/tracker/?func=detail&aid=6707&group_id=9&atid=125 now goes fine with Add>Movie. Add>Movie+Audio will complain about the fail first, but it will be added anyway.
2007-05-30 06:11:25 +00:00
Joshua Leung
044607a450 == PY API ==
Added some braces to silence gcc warnings about scene.c
2007-05-29 10:28:19 +00:00
Charlie Carley
92f1d59b44 Test commit... 2007-05-29 07:46:07 +00:00
Nicholas Bishop
d597bff7d3 == Multires ==
Fixed bug [#6737] facecount is reported incorrectly when using multires

* Added a call to update the derivedmesh after updating a multires mesh.
2007-05-29 06:42:10 +00:00
Joshua Leung
189d8b8d28 == PY-API Docs ==
Fixed bad description for a function.

As reported here:
http://www.blender.org/forum/viewtopic.php?t=11752
2007-05-29 06:30:33 +00:00
Jean-Luc Peurière
16340dfe12 adding the initial patch updated to 2.44 in ndof branch
notes : 
it compiles but is non functional
lacks the platform specific changes in ghost ( i cant test windows)
lacks the code for plug-in.

the platform specific code will be added when we sync with Ettore work
the plug-in itself cannot be added here
2007-05-29 04:34:09 +00:00
Campbell Barton
0059e5118d passing None to Blender.Mathutils.Quaternion would segfault 2007-05-28 21:53:49 +00:00
Joilnen Leite
9b88fb13f5 Adding Text3d.JUSTIFY, thanks "Oliver Schneider" <oliffm@web.de> 2007-05-28 17:06:03 +00:00
Campbell Barton
a8bc1f3397 fix for a crash in Blender.Mesh,
getting curve data from an object failed (with only 1 curve vertex)
Blender.Mesh didnt check this and crashed.
2007-05-28 16:49:48 +00:00
Campbell Barton
2d85ed24a3 Made it that hidden bones should arnt selected armature and posemode 2007-05-28 04:50:30 +00:00
Campbell Barton
91ea74c339 adding object.matrixParentInverse 2007-05-28 03:09:46 +00:00
Campbell Barton
bcc3143119 more memory leak fixes, though only a few are likely to happen 2007-05-27 21:33:48 +00:00
Campbell Barton
e6fe5214b9 drawmesh.c - change from mal_CanDo that makes lighting work the same as in blender 2.44.
header_view3d.c - smoothview wasnt working with the camera menu
2007-05-26 17:52:35 +00:00
Campbell Barton
deffce3c19 Key.c/h - Removed unneeded functions. and ipo in struct wasnt being used.
Lattice.c - removed warning
Mesh.c - (own error) when running me.update(key="...") didnt update the right keyframe.

mesh_cleanup.py - Bugfix from a report by plumiferos that started uncovering all the memory leaks.
Removing NAN verts didnt work with mesh keyframes.
2007-05-26 12:58:46 +00:00
Campbell Barton
30dd4fafd1 More memory leaks fixed - in IDProp, Bone.head, tail, matrix, ob.DupObjects (my fault) and in Effect module as well as a few others.
Also stopped using Py_BuildValue for strings, ints and floats.
2007-05-26 04:39:31 +00:00
Ken Hughes
ea9b3dc387 Fix segfault in PyBonesDict_FromPyArmature() caused by uninitialized memory. 2007-05-25 20:54:48 +00:00
Nathan Letwory
769615aed2 * playback of image sequence now also for OpenEXR images (but not multilayer). 2007-05-25 17:32:41 +00:00
Nathan Letwory
6849af7a3b * fix for #6714
- don't handle images with ffmpeg, blender knows itself perfectly fine how to do that. This fix is done as per Qt handling (skip non-Qt files).
2007-05-25 17:11:24 +00:00
Campbell Barton
f231bd0d57 Many long standing memory leaks fixed in the BPY api.
Data from Armature.c and logic.c still leaks.

Mostly todo with PyList_Append adding a refcount and the bpython api not decrefing.

Also added some features needed to fix a bug in mesh_clean.py (ob.pinShape and ob.activeShape)
2007-05-25 16:43:25 +00:00
Joshua Leung
a21f8292d9 Bugfix #6735:
Removed the error that showed up when trying to paste a pose onto protected proxy bones. By definition, you shouldn't be able to keyframe/pose protected proxy bones, but nothing obeys that currently.
2007-05-25 11:48:27 +00:00
Joshua Leung
810867b6d8 'Hack' to fix bug #6718:
The Outliner didn't refresh after adding loading a new image from disk for use as an image texture.
2007-05-25 11:14:58 +00:00
Juho Vepsalainen
1f3d1b10f0 Fixed following issues:
*if a vertex group was renamed in the outliner, the name was not updated 
correctly in visible buttons window
*certain buttons in Render panel didn't update other buttons windows in 
case their value was changed
*same goes for Logic context of the Buttons Window
*also cleaned up unnecessary code from Logic context and made Timer 
field to work correctly when pressed with left mouse button
2007-05-25 06:08:13 +00:00