Commit Graph

9916 Commits

Author SHA1 Message Date
Campbell Barton
a61638013e header_filesel - pressing buttons made the file select header title change color.
scripttemplate_object_edit.py - new script template for objects.
2007-05-01 06:57:20 +00:00
Campbell Barton
e81471f91f fix for adding a 0,0,0 dummy vertex, pointed out in [ #6607 ] 2007-05-01 00:30:48 +00:00
Campbell Barton
286eb351f0 tweaks to fly mode.
* acceleration made it a bit fast. halved the speed.
* holding shift make mouse wheel effect 1/10th as well as MMB mouse panning.
2007-05-01 00:01:20 +00:00
Campbell Barton
3648d5e06c own mistake, typo in checking mface's selection 2007-04-30 23:06:07 +00:00
Willian Padovani Germano
c40997656e Really minor updates related to code I wrote for the Cast modifier:
- modifier.c: moved a check out of a loop, removed an unneeded var, made a couple cosmetic changes.

- DNA_modifier_types.h: added parentheses to cast and smooth modifier defines that used bit-shifting (like 1<<1, etc.).

Note: realized they were needed when I tried to use "flag &= ~MOD_CAST_Z" in modifier.c. Since MOD_CAST_Z is #defined as 1<<3, ~MOD_CAST_Z ended up as ~1<<3 while I wanted ~(1<<3). There are other places in that header file and others in Blender where it'd be safer to add the parentheses...

- Updated the epydoc documentation for the features added by Ben Batt to the cast modifier; fixed small typo in API_intro.py.

BTW, thanks Ben Batt (artificer) for checking, improving with a couple features and committing these modifiers :).
2007-04-30 19:20:43 +00:00
Ben Batt
469208a101 Patch #6192 - Wave Modifier Option to move verts along normals
This patch adds an option to the wave modifier to displace along the normals
of the base mesh, rather than in the local Z direction.

Thanks to Michael Fox (mfoxdoggg) for the patch!
2007-04-30 16:49:12 +00:00
Ben Batt
0b66fe6a48 Patch #6582 - Weight groups in the wave modifier
This patch adds vertex group functionality to the wave modifier, allowing the
user to specify a vertex group with which to modulate the wave deformation.

Thanks to Michael Fox (mfoxdoggg) for the patch!
2007-04-30 15:20:05 +00:00
Campbell Barton
8355326e01 Scene.c - scene.objects.context how dosnt include hidden objects
editview.c - deselect all ignores restricted objects
headerbuttons.c - removing a material didnt redraw the 3d view
vpaint.c - disable vpaint for mesh libdata as well as object libdata
2007-04-30 08:00:48 +00:00
Matt Ebb
22e1a26681 * Small tweak - initialise mirror modifier to use X axis by default,
as it was previously.
2007-04-30 06:51:24 +00:00
Joshua Leung
f1d5f2800f == Preview Range ==
Removing the ability to have the Preview Range affecting the Preview Renders (OpenGL renders) as it is unstable in certain cases. It was only a problem when rendering to movie-file formats with a preview range set greater than the normal range, as it would consume increasing amounts of memory for each frame rendered.

Preventing this from happening would have required too much disruption of the avi
writing code to be worthwhile.
2007-04-30 04:45:18 +00:00
Matt Ebb
367c148f66 * Only reset local view near camera clipping to 0.1 if it was previously larger.
i.e. if I'm zoomed in working on something zoomed in close with a short near 
clipping distance, don't suddenly clip off my work when I enter local view.
2007-04-30 04:30:41 +00:00
Ben Batt
803697e30a Fixed editmode transform clipping for new Mirror modifier axis options. 2007-04-29 18:32:40 +00:00
Ben Batt
125c77bca3 Patch #6113 - Cast & Smooth modifiers
This patch adds two modifiers: Cast and Smooth.

The Cast modifier deforms vertices into a sphere, cylinder or cuboid shape.
The location and orientation of the projection shape can be controlled by a
specified control object.

The Smooth modifier smooths the mesh in a similar way to the Edit mode "Smooth"
button.

Thanks to Willian Padovani Germano (ianwill) for the patch!
2007-04-29 18:13:55 +00:00
Ben Batt
d0ac7ef087 Patch #6584 - Texture functionality in the wave modifier
This patch allows the user to use a texture to modulate the wave modifier's
amplitude.

Thanks to Michael Fox (mfoxdoggg) for the patch!
2007-04-29 16:15:50 +00:00
Campbell Barton
7d47189518 Patch [ #6623 ] Fixed one error, one typo in mesh_cleanup.py
Also added an option to remove all white vcol layers. this is usefull when loading old blend files where every mesh has vcolor's even if they are all white (because of how texface used to be stored before vcol layers)
2007-04-29 16:00:08 +00:00
Ben Batt
f62f07734f Patch #5629 - Mirror modifier axis' to be toggleable
This patch makes the X, Y and Z axes of the mirror modifier individually
toggleable, so it is possible to mirror in more than one direction with a
single modifier.

Thanks to Juho Vepsäläinen (bebraw) for the patch!

NOTE: BLENDER_SUBVERSION has been incremented to support translation from old
      to new axis specification.
2007-04-29 14:00:30 +00:00
Campbell Barton
99135b0674 dont use tface hide or select anymore, since maintaining 2 sets of hide/select data for each face is annoying.
using mface->flag for both.

Also found that the cdDM_drawMappedFaces and cdDM_drawFacesTex_common could get normals mixed up when rendering hidden faces. because hidden/invisible faces used continue without advancing to the next normal.
2007-04-29 13:39:46 +00:00
Ton Roosendaal
243d1a28c0 Casting fixes for 64 bits. Incomplete commit, discussion on proper casting
has to be finished.
2007-04-29 10:49:02 +00:00
Joshua Leung
e4d6f331eb == IPO Editor ==
Inser Keyframe on Current Frame now takes NLA/IPO scaling into account.
2007-04-29 03:35:39 +00:00
Joshua Leung
acce321382 == IPO Editor ==
IPO-Keys (K) should now work with scaled IPO curves.
2007-04-29 02:49:49 +00:00
Alfredo de Greef
3863205d61 bug #6615, not complete solution, but slightly improves the result at least.
Additionally fixed another bug, never reported, but a zero bokeh rotation
offset seemed to cause missing center lines.
2007-04-29 01:59:19 +00:00
Campbell Barton
5a3b6f36e3 windows needed M_PI defined. 2007-04-28 18:20:43 +00:00
Campbell Barton
1d181b9108 removed doc_browser.py - since it covers ~half the BPY api, not documenting any of blenders data types.
replaced with a help_bpy_api.py, that opens a web browser at the Blender Python API page.
Camera.c - added a veriable .angle to camera, same as .lens but adjusts the camera angle in degrees (like the D button)
export_fbx.py - use the the camera angle property.
object_cookie_cutter.py - use PointInTriangle2D rather then own function.
buttons_shading.c - added OB: and tooltip to object world mapping.
interface_draw.c - (Simple theme) text buttons looked exactly like normal buttons (more confusing when they had no text), made the text and ID buttons render inset so you can tell them apart.
2007-04-28 17:21:00 +00:00
Ton Roosendaal
6e27e1b6eb Part 2 of 64 bits fixing; the files.
The good news; previously written 64 bits are still valid! All fixes
appeared to be possible in code, no versioning patches needed. :)
That also removes the I AM STUPID 64 bits ban from the code.

The bad news:
I couldn't get a 64 bits Blender running here (ghost-mac issues... it
has to be recoded using Quartz to be able to run 64 bits). So what I
have tested was:

32 bits binary:
  - Appending/linking data from 64 bits file.
  - Reading 64 bits chained library-linked files (file -> file -> etc)
  - Linking 32 bits files with 64 bits files

This has to be tested for 64 bits too. Will drop in IRC now to help.
2007-04-28 16:15:12 +00:00
Ton Roosendaal
42057481fb Part 2 of 64 bits fixing; the files.
The good news; previously written 64 bits are still valid! All fixes
appeared to be possible in code, no versioning patches needed. :)
That also removes the I AM STUPID 64 bits ban from the code.

The bad news:
I couldn't get a 64 bits Blender running here (ghost-mac issues... it
has to be recoded using Quartz to be able to run 64 bits). So what I
have tested was:

32 bits binary:
  - Appending/linking data from 64 bits file.
  - Reading 64 bits chained library-linked files (file -> file -> etc)
  - Linking 32 bits files with 64 bits files

This has to be tested for 64 bits too. Will drop in IRC now to help.

Note: part 3 is fixing memory issues for addressing > 4 GB data. A first
start has been made for a blenlib API function.
2007-04-28 16:15:00 +00:00
Joshua Leung
6bb16e0c86 == IPO Editor - Scaled Curves for NLA-Strip Curves ==
This commit resolves an issue dating back a few releases. When the IPO block being displayed in the IPO editor came from an Action being used as an Action Strip
in the NLA editor, the keyframes in the IPO editor were not displayed in 'NLA-time'.

There are however a number of things that still need work on so that they will play
nicely with these changes. Having said that, the IPO editor is still generally stable
for use (or should be). In case anything plays up, 'pin' the IPO view you're using
to turn off these changes.

This resolves Todo #4335.

Known Issues:
* When 'K' (show keys) mode is on, it doesn't work too too well yet. The display
 in such situations will be a bit confusing.
* Pressing IKEY in the IPO editor (for inserting a keyframe on the current frame)
 also doesn't work too well yet. It will insert a keyframe on the wrong frame.
* Transforms don't get any correction for scaling yet. This is only an issue when
 snapping transforms to the grid, or relying on the delta numbers printed in the
 header.
2007-04-28 09:35:16 +00:00
Ken Hughes
705671ebaa Python API
----------
Draw.c: Fix some gcc warnings
Bone.c: Bone_getAllChildren() was calling EXPP_incr_ret() but not returning
	the value
2007-04-28 05:09:09 +00:00
Joshua Leung
836ccb8ab0 Bugfix #6614:
spurious "can't edit external libdata" for normal operations on proxy armature


Also, fixed two typos in code comments.
2007-04-28 03:01:12 +00:00
Campbell Barton
3bd0d2e227 Draw.c - error setting the callback button values when using UIBlock (was not offset)
BPyMesh.py - own dumb error, was using dir as an arg (which is a py keyword)

object_drop.py - new script, the first to use UIBlock, it drops objects into terrain, either a group or the active object. on teh Z axis or view axis.
2007-04-27 23:54:30 +00:00
Campbell Barton
a2000b53cd Adding Blender.Geometry function PointInTriangle2D 2007-04-27 20:48:23 +00:00
Campbell Barton
c84d18a679 export_cal3d - exporting all actions (option) wasnt working
export_fbx - blender cameras now work properly (converted lens angle, rotate to the right axis)
	Made meshes, armatures and cameras use the same namespace.
DirectX8Exporter - update from David Teviotdale, change names of exported objects so some DX readers dont fail
xsi_export - Null materials made the export fail (python error).
	This may not be a correct solution since material indicies could be messed up now. I have no way of reading these files.
2007-04-27 17:19:26 +00:00
Diego Borghetti
ad470b6971 Fix hide/show don't work in object mode. 2007-04-27 16:56:29 +00:00
Jiri Hnidek
76c11ec9f7 - support for fake verse edges (subsurf modifier should work now)
- edges are generated from verse faces
   - no support for lose edge!
   - informations about edges aren't sent to verse server (other applications
     can't share edges with blender)
- better sending/receiving vertex position
2007-04-27 14:04:30 +00:00
Joshua Leung
d584c8a1e6 "Bugfix" #6610:
Typo in Fluidsim Tooltips. Also fixed a few other similar issues with the tooltips
there.
2007-04-27 12:05:06 +00:00
Joshua Leung
7b6d68d7a3 == 2 Bugfixes ==
Bug #6611:
Renaming bones didn't rename corresponding action-channels in NLA strips for that
object. Was even marked in code as todo ;-)

Bugfix #6599:
Vgroup button does not update the panels in 3d viewports.
Fix provided by Juho Vepsäläinen
2007-04-27 11:54:09 +00:00
Joshua Leung
23f59a8e8a Removed unused variable and reorganised another 2007-04-27 11:32:11 +00:00
Joshua Leung
01335fc7bb Bugfix:
Previous versions of Blender allowed Vertex Groups to be nameless, which
shouldn't be allowed. This caused problems with rigs from previous versions of Blender being loaded in 2.43+ versions, as the new VGroup feature for the
Armature modifier mis-identified these nameless group(s) as being the Vertex Group
to be used. As well as the checks done when renaming VGroups (from another commit), files created prior to and in 2.43 will have all such groups given default
names.

Code notes:
* I've moved the unique_vertexgroup_name function from src to blenkernel like for
 constraints
* Formatting in deform.c tidied up a bit
2007-04-27 11:16:35 +00:00
Campbell Barton
0a9dc31c8b added blender-camera export to fbx
py api was massing shiftX/Y
2007-04-27 00:33:07 +00:00
Campbell Barton
2e134e84ab drawview.c - Passepartout, only do GL alpha when not 1.0 alpha
buttons_editing.c - negative camera lense was possible with (Deg) button enabled
export_cal3d.c - minor changes
object_batch_name_edit.py - check for data and object libdata before renaming.
2007-04-26 19:05:22 +00:00
Diego Borghetti
71ac221ea3 If you are in PoseMode and use BKEY the selection is now limited to the
bones of the armature.
2007-04-26 14:03:28 +00:00
Ton Roosendaal
adae1a7b77 Bugfix:
Specular pass was excluded from Shaded drawmode, missing initialize of
new 'exclude passes from result' option. Bug in 2.43 release...

Added warning in code, ShadeInput is initialized here locally, need an API
call for it.
2007-04-26 09:01:37 +00:00
Campbell Barton
b655d5e817 fixed many errors in Cal3D that didnt show up with the testmodel I was using.
Mostly problems with vertex index, and splitting off new verts.

removing truespace_export.py truespace_import.py, (decieded by letterrip and myself)
both truespace and blender have enough formats in common that we dont need to support this format thats spesific to truespace and not used for 3d data interchange.
2007-04-25 23:51:53 +00:00
Campbell Barton
dae5f38f55 darn, had some debug stuff left in. 2007-04-25 21:19:43 +00:00
Campbell Barton
19be3ff7c1 rewrote vertex/face creation (should be faster now)
* added support for blenders materials
* added support for multiple materials per mesh
* added Multiple UV's per vert, as well as using multiple images (Blenders TEXFace)
2007-04-25 21:17:49 +00:00
Diego Borghetti
59384464ec SubSurf can be enable/disable in linked data. 2007-04-25 16:52:20 +00:00
Ton Roosendaal
7f9c872169 Bugfix, plumiferos report:
Strand texture coords (static particles) did not precisely go from -1 to 1
when random lifetime was used.
2007-04-25 16:12:34 +00:00
Campbell Barton
3f153c25be hiding objects in texture paint mode was buggy - (you couldnt exit texxture paint) - so only hide/show objects in object mode.
removed radiosity support.

According to the author -

"The Radiosity file format is my own personal format. I created it to
learn how meshes and vertex colors were stored. See IO-Examples.zip, the
example *.radio files on my web page."
2007-04-25 14:47:29 +00:00
Joshua Leung
fabcaacc51 == Action Editor ==
In the Action Editor, sliders are now drawn beside IPO-Curve and Constraint Channels and for the active Action Channel when the 'Show Sliders' option in the View menu is turned on. This behaves like for shapekeys.

You can change the limits of the sliders by either Ctrl-Clicking or NKEY over the
name of the relevant IPO-Curve channel.


Also, documented the IPO-curve struct a bit. There are a few variables there that
I'm not sure what they are used for.
2007-04-25 11:57:02 +00:00
Campbell Barton
d2fb4afb7c BPyArmature - has a function that gets final pose locations/rotations. the data it returns can be swaped with IPO curve/locations, so exporters can use this to export bones with IK's/constraints.
export_cal3d.py - option to export with baked animation from posebones, added popup UI with some options, fixed object scaling, get the meshes armature if its not selected.
2007-04-25 05:13:03 +00:00
Campbell Barton
13b1fbd665 made blender take hidden objects into account in more situations.
Ctrl+RMB used to select a hidden object as well as "Select Grouped -> Parent"

Also made OOps and data browser check for hidden objects.

Added a countall to hide/unhide objects.
2007-04-25 02:20:55 +00:00