blender.git
14 years agoBugfix for http://projects.blender.org/tracker/?func=detail&atid=125&aid=3767&group_id=9
Campbell Barton [Thu, 19 Jan 2006 01:15:17 +0000 (01:15 +0000)]
Bugfix for projects.blender.org/tracker/?func=detail&atid=125&aid=3767&group_id=9
View All/View Selected - only took into account values from 1 axis. - Workaround because test_view2d needs to act that way for other functions.
Easy one :) Right mouse mutton cancels transform. - Must move to Theeth's new code one day.

14 years agoFixed up naming new objects/meshes when that name alredy existed - faster and better...
Campbell Barton [Wed, 18 Jan 2006 22:57:55 +0000 (22:57 +0000)]
Fixed up naming new objects/meshes when that name alredy existed - faster and better new names.

14 years ago==renderer==
Ken Hughes [Wed, 18 Jan 2006 20:06:13 +0000 (20:06 +0000)]
==renderer==

Patch #3760: Allows a python script to call renderer when the UI is not
active (thanks to Cory King for patch).  Without the patch, blender will
segfault since G.vd is NULL.

14 years agoThis patch fixes some issues with MSVC 6
Kent Mein [Wed, 18 Jan 2006 16:22:29 +0000 (16:22 +0000)]
This patch fixes some issues with MSVC 6
See: http://www.blender.org/forum/viewtopic.php?t=7863

I added Pose.c to BPY_python.dsp and moved some variable declarations
in OptimizedBvh.cpp so things weren't defined in the middle of code.

There is an odd global maxIterations  that seems out of place,
Erwin you may want to look at it quickly...

Kent

14 years agoassert caused compile problems too :(
Erwin Coumans [Wed, 18 Jan 2006 06:48:28 +0000 (06:48 +0000)]
assert caused compile problems too :(

14 years agofixed an ordering issue caused by previous commit
Erwin Coumans [Wed, 18 Jan 2006 06:46:56 +0000 (06:46 +0000)]
fixed an ordering issue caused by previous commit

14 years ago==Python API==
Ken Hughes [Wed, 18 Jan 2006 06:15:17 +0000 (06:15 +0000)]
==Python API==

Bugfix #3761: Attempting to set mesh.faceUV=1 when a mesh has no faces
now throws a RuntimeError exception.  Previous behavior was to do nothing.

14 years agoattempt to fix reported problems with glsl shader on OS X (and other platforms)....
Erwin Coumans [Wed, 18 Jan 2006 06:04:11 +0000 (06:04 +0000)]
attempt to fix reported problems with glsl shader on OS X (and other platforms). instead of continuous printing errors, it should just print once, and delete the shaders.
also, disabled the asynchronous logicbrick update, it reportedly causes jitter.

14 years ago==python scripts==
Willian Padovani Germano [Wed, 18 Jan 2006 02:20:48 +0000 (02:20 +0000)]
==python scripts==

Updated bvh to armatures script by Jean-Baptiste Perin (thanks).

14 years agofixed seam tearing with edge collapsing, should be last commit ;)
Campbell Barton [Wed, 18 Jan 2006 00:22:22 +0000 (00:22 +0000)]
fixed seam tearing with edge collapsing, should be last commit ;)

14 years agoAdded Mesh menu access for b-brush sculpter.
Campbell Barton [Wed, 18 Jan 2006 00:14:33 +0000 (00:14 +0000)]
Added Mesh menu access for b-brush sculpter.

14 years agoMoved script. Minor updates to subdivision and adaptive meshes.
Campbell Barton [Tue, 17 Jan 2006 23:50:06 +0000 (23:50 +0000)]
Moved script. Minor updates to subdivision and adaptive meshes.

14 years agomoving to bpydata because it cant be accessed from the menus
Campbell Barton [Tue, 17 Jan 2006 23:47:45 +0000 (23:47 +0000)]
moving to bpydata because it cant be accessed from the menus

14 years agoChanged the URL to be the Image filename sans path, not the image name.
Campbell Barton [Tue, 17 Jan 2006 22:13:25 +0000 (22:13 +0000)]
Changed the URL to be the Image filename sans path, not the image name.
Sped up intentation writing a bit..
Many more changes need to be applied here...

14 years ago==python scripts==
Tom Musgrove [Tue, 17 Jan 2006 21:04:12 +0000 (21:04 +0000)]
==python scripts==

slight updates and cleanups to vrml97 and x3d exporter,  the ability to do gzip compression has been added.  The redundant vrml exporter has been removed.  Thanks Bart

14 years ago==python api==
Tom Musgrove [Tue, 17 Jan 2006 16:32:09 +0000 (16:32 +0000)]
==python api==

epyDoc for insertShapeKey

14 years ago==python api==
Tom Musgrove [Tue, 17 Jan 2006 11:34:33 +0000 (11:34 +0000)]
==python api==

tex2uvbaker and hotkeys update by jms

14 years agoSpeed up for edge list's
Campbell Barton [Tue, 17 Jan 2006 11:05:45 +0000 (11:05 +0000)]
Speed up for edge list's
Remove doubles on mouseup to minimizie editMode cycling.

14 years agoAdded edge collapsing when adaptive geometry enabled.
Campbell Barton [Tue, 17 Jan 2006 09:58:24 +0000 (09:58 +0000)]
Added edge collapsing when adaptive geometry enabled.

14 years ago==python api==
Tom Musgrove [Tue, 17 Jan 2006 09:20:37 +0000 (09:20 +0000)]
==python api==

clarification of Blender.Mesh.Mode() tip

14 years ago==python api==
Tom Musgrove [Tue, 17 Jan 2006 06:47:48 +0000 (06:47 +0000)]
==python api==

patch from jean-michel soler (jms) - .insertShapeKey()

Python API, a function to insert a shape key in an object . It works on Mesh, Lattice curve ans surface .
Example of use :

import Blender
OBJECT=Blender.Object.GetSelected()[0]
OBJECT.insertShapeKey()

a docstring to follow soon

14 years ago==Python API==
Ken Hughes [Tue, 17 Jan 2006 06:18:43 +0000 (06:18 +0000)]
==Python API==
Added Mesh.Modes() function, which allows scripts to get/set the selection
mode settings for meshes.  This was necessary in order for the mesh tools
such as triangulate, remove doubles, etc., to work properly.

14 years agoFixed a problem with non mesh objects
Campbell Barton [Tue, 17 Jan 2006 06:14:52 +0000 (06:14 +0000)]
Fixed a problem with non mesh objects
Stopped seams from tearing away with xclip enabled.

14 years agoPatches submitted by Michael Reimpell to get/set relative key selection, and
Ken Hughes [Tue, 17 Jan 2006 06:12:53 +0000 (06:12 +0000)]
Patches submitted by Michael Reimpell to get/set relative key selection, and
to get the current value of the IPO shape key.  There are still some issues
to discuss as to whether methods/attributes should be used and what they
should be named, but this will (or should) be addressed in the upcoming API
rewrite.

14 years agoafter much suffering, got GE build and work almost cleanly on Os X
Jean-Luc Peurière [Mon, 16 Jan 2006 22:27:30 +0000 (22:27 +0000)]
after much suffering, got GE build and work almost cleanly on Os X
(with make, need to confirm with scons)

after cleaning the changes are in fact minimal, but the situation
is still quite a bit hackish.

Game engine coders, there is also quite a number of warnings that
need to be fixed.

current situation is that everything seems to work, but GLSL shaders
spew a lot of errors on console and blender may crash on exit when
a GLSL shader was used. ARB stuff works fine.

14 years ago==python scripts==
Tom Musgrove [Mon, 16 Jan 2006 21:42:53 +0000 (21:42 +0000)]
==python scripts==
updated version of bevel center by Loic Berthe

14 years agoFix for useing with modifiers, dosent check for subsurf flag when copying vgroups.
Campbell Barton [Mon, 16 Jan 2006 21:28:09 +0000 (21:28 +0000)]
Fix for useing with modifiers, dosent check for subsurf flag when copying vgroups.
Leaves all new objects selected.
Faster and cleaner operation- naming etc.

14 years agofixed a runtime problem with stl container usage, as reported on bf-committers mailin...
Erwin Coumans [Mon, 16 Jan 2006 19:34:52 +0000 (19:34 +0000)]
fixed a runtime problem with stl container usage, as reported on bf-committers mailing list

14 years agoclean up some warnings in bpy code
Stephen Swaney [Mon, 16 Jan 2006 17:55:03 +0000 (17:55 +0000)]
clean up some warnings in bpy code

14 years ago* added missing file
Joseph Gilbert [Mon, 16 Jan 2006 16:37:00 +0000 (16:37 +0000)]
* added missing file
- for some reason mesh_data types file was not in project

14 years ago*fixes global redefinitions
Joseph Gilbert [Mon, 16 Jan 2006 16:34:08 +0000 (16:34 +0000)]
*fixes global redefinitions
- added some extern keywords

14 years agoAlligned bone pose copy buttons (noticed in orange screenshot)
Campbell Barton [Mon, 16 Jan 2006 11:57:04 +0000 (11:57 +0000)]
Alligned bone pose copy buttons (noticed in orange screenshot)
Also found that Proportional edit button starts allign but dosent end align. Didnt chgange incase this is intended??
Take a look header_view3d.c:4390

14 years ago* Tiny tweak to button alignment after Campbell's commit.
Matt Ebb [Mon, 16 Jan 2006 11:27:50 +0000 (11:27 +0000)]
* Tiny tweak to button alignment after Campbell's commit.

Campbell, most of the changes you made seem ok, but you do have to be careful since it's not just about looking good, it's also about grouping things meaningfully. We did some thoughts on more concrete guidelines for this here: http://mediawiki.blender.org/index.php/BlenderDev/UIAlignRulesGuides

14 years agoAdded user interface to OBJ import.
Campbell Barton [Mon, 16 Jan 2006 06:33:55 +0000 (06:33 +0000)]
Added user interface to OBJ import.
With options.
('Material (*.mtl)', IMPORT_MTL, 'Imports material settings and images from the obj\'s .mtl file'),\
('All *.obj\'s in dir', IMPORT_DIR, 'Import all obj files in this dir (avoid overlapping data with "Create scene")'),\
('Create scene', IMPORT_NEW_SCENE, 'Imports each obj into its own scene, named from the file'),\
'Geometry...',\
('Edges', IMPORT_EDGES, 'Import faces with 2 verts as in edge'),\
('Smooths all faces', IMPORT_SMOOTH_ALL, 'Smooth all faces even if they are not in a smoothing group'),\

14 years agoHopefully clear up the last of the obj import bugs.
Campbell Barton [Mon, 16 Jan 2006 05:28:34 +0000 (05:28 +0000)]
Hopefully clear up the last of the obj import bugs.
* 8% speedup by using list comprehension.
* Slightly better smoothing group import.
* Handles bug in python that puts spaces before every line with '\r\n' line endings.

14 years agoBPython:
Willian Padovani Germano [Mon, 16 Jan 2006 03:51:32 +0000 (03:51 +0000)]
BPython:

- minor: added missing theme options (bone_solid, bone_pose, strip,
strip_select) to Blender.Window.Theme and also updated accordingly
(version info) the script that saves themes as scripts and the module's
doc.

14 years agoFixed Window.Editmode(0) so that it only calls undo_push_mesh() when
Ken Hughes [Mon, 16 Jan 2006 02:06:02 +0000 (02:06 +0000)]
Fixed Window.Editmode(0) so that it only calls undo_push_mesh() when
U.undosteps is nonzero.  Also added optional parameter to avoid pushing
undo info alltogether if desired.

14 years ago==python scripts==
Tom Musgrove [Sun, 15 Jan 2006 20:05:28 +0000 (20:05 +0000)]
==python scripts==
slight bug fix update to ply importer by Bruce Merry

14 years agoIn fixing for negative indicies I broke positive indicies. Fixed. not helped by the...
Campbell Barton [Sun, 15 Jan 2006 17:56:40 +0000 (17:56 +0000)]
In fixing for negative indicies I broke positive indicies. Fixed. not helped by the fact the files I had for testing were 32 and 70 meg..
ALso modified the MTL loader for Object.Get's new ValueError.
- Should be good for release now.

14 years agoRemoved printfs in setPoints(), add proper exception handling.
Ken Hughes [Sun, 15 Jan 2006 17:14:58 +0000 (17:14 +0000)]
Removed printfs in setPoints(), add proper exception handling.

14 years agolast of the cosmetic fixes with aligning buttons in the path setting/info win prefs...
Campbell Barton [Sun, 15 Jan 2006 14:47:16 +0000 (14:47 +0000)]
last of the cosmetic fixes with aligning buttons in the path setting/info win prefs area.

14 years agoMesh sculpting event handeler script,
Campbell Barton [Sun, 15 Jan 2006 14:44:09 +0000 (14:44 +0000)]
Mesh sculpting event handeler script,
see http://www.elysiun.com/forum/viewtopic.php?t=56101 for details,

14 years agoAligned all remaining non-aligned header buttons, (was looking yuck with rounded...
Campbell Barton [Sun, 15 Jan 2006 13:30:56 +0000 (13:30 +0000)]
Aligned all remaining non-aligned header buttons, (was looking yuck with rounded theme, hope this doesn't mess you up Broken)
Aligned filesel buttons|text entry- looked arse also.
Added tooltips for filesel text entry- "Type in dir to create" and "+/- increment" or somthing like that.
- Cam

14 years agomore graphics patches from Snailrose,
Erwin Coumans [Sun, 15 Jan 2006 11:34:55 +0000 (11:34 +0000)]
more graphics patches from Snailrose,
remove constraint fixed,
Bullet timestep now subdivides Blender game engine timestep, so it runs 60 hertz,
SphereShape reverted to old style, so no support for non-uniform scaled spheres for now,

14 years agoBugfix #3731: User reported that cyclic IPO curves reported the wrong value
Ken Hughes [Sat, 14 Jan 2006 22:05:16 +0000 (22:05 +0000)]
Bugfix #3731: User reported that cyclic IPO curves reported the wrong value
in the BPy API for the "end point".  It was a minunderstanding of what
happens with cyclic Ipos, but we updated the documentation to make this
clearer in the future.

14 years agoBug fix: #3684
Martin Poirier [Sat, 14 Jan 2006 20:52:39 +0000 (20:52 +0000)]
Bug fix: #3684

When grabing a camera in camera view, the constraint center wasn't the center used for initgrabz, so it messed up a lot.

14 years agofix previously fixed error msg.
Stephen Swaney [Sat, 14 Jan 2006 19:05:33 +0000 (19:05 +0000)]
fix previously fixed error msg.

14 years agoObject.Get( name ) was throwing an AttributeError.
Stephen Swaney [Sat, 14 Jan 2006 02:13:15 +0000 (02:13 +0000)]
Object.Get( name ) was throwing an AttributeError.
Change to throw more correct ValueError when name
is not found as per IRC discussion

14 years agoCam Barton discovered the setter for me.faces[i].col was missing.
Ken Hughes [Fri, 13 Jan 2006 17:22:53 +0000 (17:22 +0000)]
Cam Barton discovered the setter for me.faces[i].col was missing.

14 years ago* [ #3746 ] Calling getPose on a mesh object generates "RuntimeError: Pose - Error...
Joseph Gilbert [Fri, 13 Jan 2006 16:19:11 +0000 (16:19 +0000)]
* [ #3746 ] Calling getPose on a mesh object generates "RuntimeError: Pose - Error: PyPose_FromPose: Internal Error Ocurred"
- added returns where appropriate.

14 years ago*head/tail addition
Joseph Gilbert [Fri, 13 Jan 2006 15:53:22 +0000 (15:53 +0000)]
*head/tail addition
- forgot to add the ability to get pose head/tail positions
- no setters (yet) as they are calculated

14 years ago*bone.children fix
Joseph Gilbert [Fri, 13 Jan 2006 15:27:23 +0000 (15:27 +0000)]
*bone.children fix
- fixes bone.children to return direct bone children
- added bone.getAllChildren() to allow previous behavior

14 years agoFixed bug in importing OBJ files with negative indicies (UV and VERTS, normals are...
Campbell Barton [Fri, 13 Jan 2006 15:26:15 +0000 (15:26 +0000)]
Fixed bug in importing OBJ files with negative indicies (UV and VERTS, normals are ignored)
Have alredy tested 100's of obj files and cant believe this is the first I have found with negative coords.
May fix the UI before 2.41, Importing a whole dir isnt very user friendly. and may want to support sequence import.
- Cam

14 years agoBugfix as provided by 'stealth apprentice' on the bf-comitters list.
Ton Roosendaal [Fri, 13 Jan 2006 12:14:13 +0000 (12:14 +0000)]
Bugfix as provided by 'stealth apprentice' on the bf-comitters list.
Function get_constraint_target() should catch the case when a constraint
has unknown type, to prevent a pointer to become unitialized.

14 years agoAnother bug fix for reference counting in extend methods.
Ken Hughes [Fri, 13 Jan 2006 07:11:30 +0000 (07:11 +0000)]
Another bug fix for reference counting in extend methods.

14 years agoSubsurf UV crasher fix - thanks Malefico and Matthew for test files.
Brecht Van Lommel [Fri, 13 Jan 2006 06:56:32 +0000 (06:56 +0000)]
Subsurf UV crasher fix - thanks Malefico and Matthew for test files.

14 years agomake clear that 'concave mesh' is really for static triangle mesh. too many people...
Erwin Coumans [Fri, 13 Jan 2006 01:00:35 +0000 (01:00 +0000)]
make clear that 'concave mesh' is really for static triangle mesh. too many people try to make it moving, it is for landscapes/static environment.

14 years ago==python scripts==
Tom Musgrove [Fri, 13 Jan 2006 00:24:23 +0000 (00:24 +0000)]
==python scripts==
added xfig exporter by Dino Ghilardi

ply import and export in previous commit were by Bruce Merry

14 years ago==python scripts==
Tom Musgrove [Thu, 12 Jan 2006 21:33:42 +0000 (21:33 +0000)]
==python scripts==
added ply import and export, extensively tested on files from

http://www.cs.virginia.edu/~gfx/Courses/2001/Advanced.spring.01/plymodels/

they give correct results for both import and export, however they could use some speed optimization for large mesh

14 years agobugfix: #3738 Armature bones returns none instead of key error
Stephen Swaney [Thu, 12 Jan 2006 21:21:41 +0000 (21:21 +0000)]
bugfix: #3738  Armature bones returns none instead of key error

BonesDict was returning None instead of throwing a KeyError
when key not found.
Also fixed a few compile warnings about struct initialization.

14 years agoFixed a segfault in zooming out on long wave files- 6min+
Campbell Barton [Thu, 12 Jan 2006 13:34:55 +0000 (13:34 +0000)]
Fixed a segfault in zooming out on long wave files- 6min+

Was using shorts which couldent code with viewing many samples at once.

14 years agoRenamed clean_mesh.py to mesh_cleanup.py
Campbell Barton [Thu, 12 Jan 2006 12:39:14 +0000 (12:39 +0000)]
Renamed clean_mesh.py to mesh_cleanup.py
Rewrote to use Kens Mesh module, much faster, cleaner and nicer UI. - Another use for PupBlock.

14 years agoClean-up of some reference counting issues with delete() methods. Also
Ken Hughes [Thu, 12 Jan 2006 07:51:19 +0000 (07:51 +0000)]
Clean-up of some reference counting issues with delete() methods.  Also
further relax the input types for edge.extend() and face.extend() so that
single lists or tuples are accepted without errors.

14 years agorenamed some variables to make the timing in the game engine less confusing+minor...
Erwin Coumans [Thu, 12 Jan 2006 06:30:01 +0000 (06:30 +0000)]
renamed some variables to make the timing in the game engine less confusing+minor improvements in this area.
enabled game engine for scons

14 years agoAdded tri2quad script finds all possible quads to be made from selected triangle...
Campbell Barton [Thu, 12 Jan 2006 05:28:47 +0000 (05:28 +0000)]
Added tri2quad script finds all possible quads to be made from selected triangle pairs, then joins the best first until the error limit is reached.
Just Updated and faster 8.5sec to 0.6sec for 2k triangles in my test.
Also my fav new function PupBlock for the UI input!

14 years agoFixed a bug in boxpack that archimap not to clear data between uses, and become progr...
Campbell Barton [Thu, 12 Jan 2006 03:34:37 +0000 (03:34 +0000)]
Fixed a bug in boxpack that archimap not to clear data between uses, and become progressivly slower.
Updated Archimap to set UV's aslists (dont need to convert to tuples anymore)

14 years agooverlooked IMB_imbuf.h was already included inside an extern "C" section.
Erwin Coumans [Thu, 12 Jan 2006 01:37:33 +0000 (01:37 +0000)]
overlooked IMB_imbuf.h was already included inside an extern "C" section.

14 years agouncommented include "IMB_imbuf.h", it is needed?
Erwin Coumans [Thu, 12 Jan 2006 01:15:09 +0000 (01:15 +0000)]
uncommented include "IMB_imbuf.h", it is needed?

14 years agoBPy: Mathutils fix: bug #3737
Martin Poirier [Thu, 12 Jan 2006 01:11:42 +0000 (01:11 +0000)]
BPy: Mathutils fix: bug #3737
Vector.resize4D() didn't put 1 in the 4th component (the scale factor), as it did in 2.37.
While this is more "correct", it is much less usefull. Also, matrix.resize4x4 puts a 1 there too,
so might as well revert and be consistent.

14 years agore-enable game engine by default, for 2.41 preparation
Erwin Coumans [Thu, 12 Jan 2006 00:57:28 +0000 (00:57 +0000)]
re-enable game engine by default, for 2.41 preparation

14 years agoScons fix:
Martin Poirier [Thu, 12 Jan 2006 00:07:08 +0000 (00:07 +0000)]
Scons fix:

new BPy Pose files weren't added to Sconscript

14 years agoremove Constraint.h since it doesn't exist.
Kent Mein [Wed, 11 Jan 2006 21:58:37 +0000 (21:58 +0000)]
remove Constraint.h since it doesn't exist.

Provided by Letterrip.

Kent

14 years ago- override the temporary disabling of KETSJI and OPENAL for FreeBSD.
Hans Lambermont [Wed, 11 Jan 2006 21:11:07 +0000 (21:11 +0000)]
- override the temporary disabling of KETSJI and OPENAL for FreeBSD.

14 years agoForgot the pose file.... :p
Joseph Gilbert [Wed, 11 Jan 2006 20:48:46 +0000 (20:48 +0000)]
Forgot the pose file.... :p

14 years ago*pose docs
Joseph Gilbert [Wed, 11 Jan 2006 20:44:24 +0000 (20:44 +0000)]
*pose docs
- some pose python documentation

14 years ago- sanitize spacings and tabs a bit. It's still not completely clean though.
Hans Lambermont [Wed, 11 Jan 2006 20:25:04 +0000 (20:25 +0000)]
- sanitize spacings and tabs a bit. It's still not completely clean though.

14 years ago*vc7 project file update
Joseph Gilbert [Wed, 11 Jan 2006 19:42:58 +0000 (19:42 +0000)]
*vc7 project file update
- adds pose to python project

14 years agoProbably need these....
Joseph Gilbert [Wed, 11 Jan 2006 19:41:01 +0000 (19:41 +0000)]
Probably need these....

14 years ago*pose code for python
Joseph Gilbert [Wed, 11 Jan 2006 19:40:06 +0000 (19:40 +0000)]
*pose code for python
- adds object.getPose
- ability to manipulate poses /posebones
- fixes a overflow bug in matrix sequence accessor
- adds code to get vec/roll from mat3
- few internal fixes to NLA
- ability to set bone matrices

14 years agoAt least FreeBSD needs to know where to find gl.h
Hans Lambermont [Wed, 11 Jan 2006 19:31:15 +0000 (19:31 +0000)]
At least FreeBSD needs to know where to find gl.h

14 years agoA few Mesh fixes:
Ken Hughes [Wed, 11 Jan 2006 18:37:47 +0000 (18:37 +0000)]
A few Mesh fixes:
* edge and face extend() methods now add edges and faces in the order given
  by their parameters.  Note that if duplicate edges or faces are specified,
  the order is preserved but the dups are removed, so indices won't match.
* allow extend(), findEdges() and faces.uv to accept lists or tuples
* fix bug in mesh.verts.extend() which didn't correctly check argument types

14 years agoExclude labels from grouping. - Clever numbuts look nicer with rounded theme.
Campbell Barton [Wed, 11 Jan 2006 16:55:31 +0000 (16:55 +0000)]
Exclude labels from grouping. - Clever numbuts look nicer with rounded theme.

14 years agoattempt to avoid nameclashes (although it is already in a namespace) -> extension...
Erwin Coumans [Wed, 11 Jan 2006 13:31:45 +0000 (13:31 +0000)]
attempt to avoid nameclashes (although it is already in a namespace) -> extension names renamed from glXXX to blXXX.

14 years agoFixed a silly bug when copying images.
Campbell Barton [Wed, 11 Jan 2006 10:12:03 +0000 (10:12 +0000)]
Fixed a silly bug when copying images.

14 years agoupdate to obj export:
Campbell Barton [Wed, 11 Jan 2006 09:47:17 +0000 (09:47 +0000)]
update to obj export:
Added options.
pup_block = [\
('Apply Modifiers', EXPORT_APPLY_MODIFIERS, 'Use transformed mesh data from each object. May break vert order for morph targets.'),\
('Selection Only', EXPORT_SEL_ONLY, 'Only export objects in visible selection.'),\
('Edges', EXPORT_EDGES, 'Edges not connected to faces.'),\
('Normals', EXPORT_NORMALS, 'Export vertex normal data (Ignored on import).'),\
('Materials', EXPORT_MTL, 'Write a seperate MTL file with the OBJ.'),\
('All Scenes', EXPORT_ALL_SCENES, 'Each scene as a seperate OBJ file.'),\
('Animation', EXPORT_ANIMATION, 'Each frame as a seperate OBJ file.'),\
('Copy Images', EXPORT_COPY_IMAGES, 'Copy image files to the export directory, never everwrite.'),\
]

Obj import was updated to import edges (2 vert faces), will update some more later.

14 years agoMSVC6 projects for happy GE compiling
Jens Ole Wund [Wed, 11 Jan 2006 09:13:59 +0000 (09:13 +0000)]
MSVC6 projects for happy GE compiling

14 years agoFixed bug in do_clever_numbuts not displaying tooltips.
Campbell Barton [Wed, 11 Jan 2006 04:03:19 +0000 (04:03 +0000)]
Fixed bug in do_clever_numbuts not displaying tooltips.
Comment:
Clear all events so tooltips work, this is not ideal and
only needed because calls from the menu still have some events
left over when do_clever_numbuts is called.
Calls from keyshortcuts do not have this problem.

14 years agoremoved slow list handeling
Campbell Barton [Tue, 10 Jan 2006 17:40:50 +0000 (17:40 +0000)]
removed slow list handeling
faster vert comparisons
replaced spaces for tabs
removed unneeded getData() calls
general cleanup.

14 years ago*project file updates
Joseph Gilbert [Tue, 10 Jan 2006 16:08:03 +0000 (16:08 +0000)]
*project file updates
- gets project files in line for compiling again

14 years agoAdded openflight import/export- Blight v1.2
Campbell Barton [Tue, 10 Jan 2006 13:42:20 +0000 (13:42 +0000)]
Added openflight import/export- Blight v1.2

14 years agoMSVC compile error fix for subsurf UV.
Brecht Van Lommel [Tue, 10 Jan 2006 12:25:07 +0000 (12:25 +0000)]
MSVC compile error fix for subsurf UV.

14 years agoWarning fixes for gcc 4 in iksolver and ghost.
Brecht Van Lommel [Tue, 10 Jan 2006 11:49:53 +0000 (11:49 +0000)]
Warning fixes for gcc 4 in iksolver and ghost.

14 years agoApply Subsurf to UV's.
Brecht Van Lommel [Tue, 10 Jan 2006 11:36:57 +0000 (11:36 +0000)]
Apply Subsurf to UV's.

This fixes most of the UV distortion issues with subsurf. Near seams
however there might still be some distortion, but this should at least
not be worse than before. Subsurf UV is enabled by default on new meshes,
and can be enabled in the modifier panel for existing ones.

Before and after:
http://users.pandora.be/blendix/notsmooth.png
http://users.pandora.be/blendix/smooth.png

14 years agoapplied patch from snailrose, related to multi-platform OpenGL extensions.
Erwin Coumans [Tue, 10 Jan 2006 06:34:42 +0000 (06:34 +0000)]
applied patch from snailrose, related to multi-platform OpenGL extensions.

14 years agoAnother msvc issue. Added #include <ctype.h> so it compiles.
Kent Mein [Tue, 10 Jan 2006 02:23:47 +0000 (02:23 +0000)]
Another msvc issue.  Added #include <ctype.h> so it compiles.
See patch #3686

Kent

14 years agoFixed bug in convert function with Mesh objects.
Campbell Barton [Tue, 10 Jan 2006 02:01:24 +0000 (02:01 +0000)]
Fixed bug in convert function with Mesh objects.
Objects with no modifier could still be converted, but resulting meshes were corrupt and segfaulted Blender when cycling edit mode.
This tests each mesh object for modifiers before converting.

Resulting metaballs meshes were not visible in wireframe.

Also made the selection context nicer, All new converted objects are selected while objects that are converted are deselected.

14 years agoadded prototypes for bottom_sel_action and friends.
Kent Mein [Tue, 10 Jan 2006 01:36:36 +0000 (01:36 +0000)]
added prototypes for bottom_sel_action and friends.
Steath Apprentice said its needed for MSC.  Bug # 3687

Kent

14 years agoThere was a problem with typing over text selections, where you had an object with...
Campbell Barton [Mon, 9 Jan 2006 15:24:23 +0000 (15:24 +0000)]
There was a problem with typing over text selections, where you had an object with 21 letter name (19 is the max but 21 is supported, just copy a mesh a few times)
After this click on the object name and start typing, even though the selection makes it that the new string would be overwritten, it dosent let you type in any text.

from
if(len <= but->max) {
to...
if(len-SELWIDTH+1 <= but->max) {

- Tested and works well.

14 years agoMade buttons in clever numbuts allign.
Campbell Barton [Mon, 9 Jan 2006 05:01:17 +0000 (05:01 +0000)]
Made buttons in clever numbuts allign.
Commented out crufty name spesific actions that changed variables and added a label of buttons started with "Rot" - Since panels are used for rotating now.

14 years ago* Added PupBlock for user options.
Campbell Barton [Mon, 9 Jan 2006 03:43:48 +0000 (03:43 +0000)]
* Added PupBlock for user options.
* Improved context, unwraps active object if not selected and makes sure it only unwraps a mesh once even if 2+ instances are selected.
* Added Option to stretch to bounds
* Added option to have a margin, thanks to letterrip
* Fixed bug whe nassigning UV's to zero area faces.