Commit Graph

10323 Commits

Author SHA1 Message Date
Campbell Barton
d1959e51b2 was missing editmode exit in script template 2007-06-10 17:28:21 +00:00
Brecht Van Lommel
d39d2e7279 Patch #6717:
Select Inverse function in the UV editor, by Juho Vepsalainen.
2007-06-10 14:06:34 +00:00
Nicholas Bishop
2393896cee == Multires ==
Removed an unused integer from MultiresFace
2007-06-10 09:23:50 +00:00
Nicholas Bishop
c61198d006 == Multires ==
Modified the vert_edge_map and vert_face_map arrays in MultiresLevel so that the data is stored only for as long as it is needed -- for adding levels and updating levels. Once the modifications are 
complete, the mapping data is deleted, which provides a large reduction in memory usage for a minor increase in processing time for updating levels.
2007-06-10 06:00:42 +00:00
Campbell Barton
22e6e836fa bugfix for [#6818] object_find.py assumes active uv layer is set
was assuming meshes had UVs
2007-06-10 04:10:25 +00:00
Campbell Barton
4d2cbdb038 only shadow didnt redraw 2007-06-09 14:25:05 +00:00
Campbell Barton
10a22bdba7 subsurfs EDGE_getSharpness function was looping when it didnt need to and also took an unused value.
removed loop and unused var, since this is a sensitive (and not my) area - I did some mesh comparisons and ran a comparison with the old function passing random values, so this should be ok.
2007-06-09 10:51:02 +00:00
Joshua Leung
c356f3d68f == NLA Editor ==
Yet another commit to fix Shift-S snapping for keyframes. The code to snap an Object's IPO block's keyframes to the current frame should be evaluated before the expanded/collapsed status of said object is evaluated.
2007-06-09 07:24:08 +00:00
Juho Vepsalainen
274b504d66 Fix for bug #6828:
It was missing checks for screen status.

Log for my previous commit.
Sorry for the hassle.
2007-06-09 05:56:43 +00:00
Juho Vepsalainen
ca1ccb84bc Index: source/blender/src/editscreen.c
===================================================================
--- source/blender/src/editscreen.c	(revision 10896)
+++ source/blender/src/editscreen.c	(working copy)
@@ -1403,7 +1403,7 @@
 				if(sc == NULL)
 					sc= G.main->screen.first;
 				
-				setscreen(sc);
+				if(is_allowed_to_change_screen(sc)) setscreen(sc);
 				g_activearea= NULL;
 				towin= 0;
 			}
@@ -1416,7 +1416,7 @@
 				if(sc == NULL)
 					sc= G.main->screen.last;
 				
-				setscreen(sc);
+				if(is_allowed_to_change_screen(sc)) setscreen(sc);
 				g_activearea= NULL;
 				towin= 0;
 			}
2007-06-09 05:51:11 +00:00
Juho Vepsalainen
9168c16dda 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-06-09 05:41:55 +00:00
Campbell Barton
3db1a55b2d added an optional window ID arg to Window.ViewLayers so you can set the layer for each viewport. 2007-06-08 15:41:31 +00:00
Jiri Hnidek
d1711b3972 Patch [#6729] from Juho Vepsäläinen. It adds inverse and random select for metaelems. I simplified random select a little. 2007-06-08 14:17:13 +00:00
Jiri Hnidek
dc8a10bf58 Missing menu items in header menu, Mark Sharp and Clear Sharp. Removed one debug print 2007-06-08 11:52:44 +00:00
Joshua Leung
4a9aa0e064 == Action/NLA ==
* Snap and Mirror tools for the Action Editor, now respect NLA scaling again. I accidentally omitted the relevant code when recoding.

* Snap tool in the NLA Editor, now works for the keyframes displayed for each object too. There's one case I've to check up on later, as there might be interesting conflicts.
2007-06-08 07:31:03 +00:00
Kent Mein
93a3b2b78a Some more coverity fixes.
This one moves some pointer checks up in the code 
(they were after the pointer was used, kind of useless at that point) ;)

Kent
2007-06-07 02:00:11 +00:00
Campbell Barton
25baab252c yafray settings access from Py API 2007-06-06 19:12:07 +00:00
Andrea Weikert
f1992aeb65 ==== MSVC 7.1 projectfiles ====
- small update for missing nodes.vcproj
- also first commit to svn
2007-06-06 19:09:45 +00:00
Diego Borghetti
ee0c3245e7 Fix possible segfault in blender.
tname can be bigger of 21 character, in that case
strncpy don't put the final '\0' to the name this.
2007-06-06 15:11:16 +00:00
Nathan Letwory
9a78468ab0 * put a try block around import subprocess. Apparently there can be broken python installs without the subprocess module. This is useful on win32 with mingw only anyway. 2007-06-06 07:07:58 +00:00
Campbell Barton
b0921f3d79 exporting normals wit the "High Quality Normals" option disabled, exported localspace normals.
not too bad since HQNormals were enabled by default.
2007-06-06 04:34:59 +00:00
Joshua Leung
add68862b9 Bugfix #6809: K key in 3d viewport does not exit keyframe mode in Ipo Editor
Patch by Juho Vepsäläinen (BeBraw) included with the report fixes this issue.
2007-06-06 04:13:02 +00:00
Kent Mein
b22a6da7b8 initalize texvec[2] even though its not used, imagewrap checks to make sure its
in a given range.

Kent
2007-06-05 19:39:19 +00:00
Kent Mein
cf528cc946 Again lets check for -1 from BLI_filesize before continuing.
Kent
2007-06-05 15:51:24 +00:00
Kent Mein
0a436e01e2 filelen is set to the return result of BLI_filesize
which can return -1.  So lets check for -1 before calling malloc
and doing more work.

Another coverity fix.

Kent
2007-06-05 15:43:20 +00:00
Kent Mein
d01d36ddd6 Another bug found thanks to Coverity.
typo was indexing past last element in an array.

Kent
2007-06-05 15:11:39 +00:00
Joshua Leung
25935dbdb1 == Action Editor - Major Recode ==
I've just spent two days rewriting the Action Editor to unify its code and bring it under control again (it was 107kb, now it is around 73 kb). 
* This means that there are no longer separate functions for each tool for Actions and Shapekeys in the Action Editor, and also no more missing tools for either. 
* Also, I've gotten rid of the need for those complicated, hierarchial loops used for action channels, as they were a pain to keep consistent with each other.
* Baking functions have been removed. See user-level-changes for more details.
* Reorganised and completely rewrote code in editaction.c, thus the lengthy diff.

User Level Changes:
* For the meantime, border-selecting Action Channels has been disabled
* Baking functions have been removed. As far as I have been able to find out, these were really non-functional anyway. Besides, I don't think they really belonged in editaction.c
* Editing Shapekey keyframes now yields the same feature set as for those in Action Channels.
* There shouldn't be any major bugs left, but I might have missed something.

Further Work:
* Do a cleanup like this to the Action Editor drawing code in drawaction.c
* Baking??? (harkyman seems to be doing something about this)
2007-06-05 12:11:00 +00:00
Juho Vepsalainen
6b9fe36e0b Fixed outliner to update when scriptlinks are altered. 2007-06-05 08:26:18 +00:00
Geoffrey Bantle
ba958bea0f -> Custom Properties for Mesh entities
In order to give import/export script authors the ability to add properties
to inidividual faces, vertices and edges in the same manner as they are able
to do with ID structures three new custom data types have been added to blender
for floats, integers and strings.

Things to note:

-Since property Layers are custom data, they are added to all verts, edges 
 or faces at once.
-Only one property layer for each unique property name may exist. In  other 
 words, you cannot have a float layer as well as an integer layer
 both with the same name.
-No user interface for this exists at the moment.

The following methods and attributes have been added to the Blender.Mesh
Python module and it's object types:

->MVert/Edge/FaceSeq:
	addPropertyLayer(name, type)
	removePropertyLayer(name)
	renamePropertyLayer(original name, new name)
	properties(readonly list.)

->MVert/Edge/Face
	getProperty(name)
	setProperty(name, value)

->Mesh module
	PropertyTypes (readonly dictionary)
2007-06-04 19:18:19 +00:00
Campbell Barton
d5ee6fc865 interface_draw.c - when the char panel was displayed it would mess up font size for other panels.
drawview.c - removed unneeded comment (as GSR pointed out)
2007-06-04 10:53:37 +00:00
Campbell Barton
f368b60baf OBJ smooting groups exported enabled for by default for the first smooth group (should have been disabled)
gen_library.c - Own error, hashing did not decref the tuple it created.
Draw.c - callback also missed a decref
2007-06-04 08:15:27 +00:00
Nicholas Bishop
531ffedba9 == Sculpt Mode ==
Kind of fixed [#6688] sculpt - if 2.44 blend is openned in 2.43 with flatten brush selected causes crash

* Added better handling for new brushes; if more brushes are added they will no longer cause a crash (but this doesn't help older Blenders compiled without this fix.)
2007-06-04 08:03:37 +00:00
Campbell Barton
8e530d5074 Patch from GSR [#6595] Ortho/Persp reporting in the View names 2007-06-04 00:35:19 +00:00
Campbell Barton
9e1b15ff19 [#6787] OOPS window draw changes patch from Matthew Plough (meestaplu)
And added groups to the oopsview
2007-06-04 00:09:41 +00:00
Nicholas Bishop
4287796f61 == Multires ==
Fixed bug [#6798] Multires eventually destroys Meshes with Shapekys

* Moved the check for multires on adding shapekeys into insert_shapekeys rather than on the "Add Shape" button click
2007-06-03 20:24:09 +00:00
Ton Roosendaal
0016aa9e71 Bugfix #6799
Particle system was messing up depsgraph tags, causing bad results
in commandline renders especially (or in rendering first frame of
animation).

Fixed with introducing a temp storage tag in Objects. The real fix
should be to make particle systems behave nice inside the depsgraph.
2007-06-03 08:34:32 +00:00
Brecht Van Lommel
98a77bc9c6 Bugfix: SSS with negative lights gave artifacts. 2007-06-02 22:53:19 +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