Commit Graph

1670 Commits

Author SHA1 Message Date
Roel Spruit
79eb9de35a some MSVC cleanup.
- removed DNA_script_types from makesdna project.
- fixed a few errors in the projectsettings of the yafray project...it's a wonder people actually got it to compile.
2004-01-21 20:57:29 +00:00
Ton Roosendaal
0a25a54569 - fix for bug #903
this was an error as reported more, with horizontal lines in raytraced
  renderings. It appeared to be an Osa struct being not reset to zero
  for normals... only happens when using bumpmapping.
2004-01-21 20:52:31 +00:00
Jiri Hnidek
30cedebbe9 - some declaration was missing. Blender runs again at IRIX 2004-01-21 12:45:13 +00:00
Nathan Letwory
314f4db5e4 - (win32) moved the .res addition to source_files to after the first use of source_files, so the addition makes sense.
- (win32) set the path for ode_include to the prebuilt library.
2004-01-21 09:05:17 +00:00
Willian Padovani Germano
1652884463 BPython:
-- removed struct Script (DNA_script_types.h) from makesdna to blender/include/BPI_script.h
   (BPI meaning Blender Python-related external Include file).
   Had agreed with Ton that makesdna was not the proper place for it.
-- fixed two small warnings in Ipo.c (variables might be used uninitialized)
-- fixed a bug reported on blender.org's python forum by Wim Van Hoydonck (aka tuinbels):
   Blender would hang if a script failed.  My fault, accidentally put a node=node->next type call outside the while loop check, so it never ended.

With makesdna/DNA_script_types.h removed and include/BPI_script.h added, msvc projectfiles will need to be updated.  Sorry to do it now, but I promissed I'd fix this before next release.
2004-01-21 04:38:03 +00:00
Robert Wenzlaff
24bb131b7c - Fixed Displacement Hollow vs. Solid problem. Test for flipped
normals was commented out.
2004-01-21 01:53:56 +00:00
Michel Selten
2883110a54 SCons updates: (All done by jesterKing)
* Windows .exe file now includes the blender icon.
* Builds with game engine on Windows only.
  I tried building the game engine on Linux, but I get weird errors when
  building with ode. There's a dirty #include path in
  Physics/BlOde/OdePhysicsEnvironment.cpp (../ode/src/joint.h). gcc doesn't
  like this somehow.
* Other platforms need to add a couple of flags to the SConstruct:
  use_sumo, use_ode, solid_include and ode_include
2004-01-20 20:28:39 +00:00
Chris Want
1942e4897e Fixed the "bones on invisible layers, that are constrained to objects on
visible layers, don't move during transform()" bug.
2004-01-20 05:12:42 +00:00
Willian Padovani Germano
57b91ddce8 Scripts in menus:
- now the file .Bpymenus is in ~/.blender/, please delete the old one
- both ~/.blender/scripts/ and (if set) user pref scripts dir are scanned for scripts
- 2 scripts of the same group with the same name, one in each dir: user pref overwrites the other's entry
- fixed the problem with trailing backslash, was my fault (used NULL instead of "/" for relbase in BLI_make_file_string
- slightly changed msgs to be less verbose and parsing to be more forgiving
- if a script registers with a wrong group, 'Misc' is used instead
- 'Blender' tag is now checked, gives a warning (notice) msg if script is newer than Blender program

Blender.NMesh module and doc:
- added vertex.sel var to get/set selection state of vertex.
2004-01-20 04:57:47 +00:00
Alejandro Conty Estevez
32fa24339e Added missing headers for unix systems 2004-01-19 18:44:06 +00:00
Alejandro Conty Estevez
033a16e258 Error checking in system call. 2004-01-19 18:36:53 +00:00
Martin Poirier
f7d5c46e53 Text Editor hotkeys fixing (Bug #904 http://projects.blender.org/tracker/index.php?func=detail&aid=904&group_id=9&atid=125 )
The real hotkeys didn't match the ones written in the menus.

I made the hotkey match the menu entry (I could have done the other way around, but the hotkeys in the menu were more consistant and logical than the real ones).

Also started cleaning hotkey management in this file. The even is splitted in two switch with some events being catched in both. This creates some strange double event catching sometimes. I'll be fixing that this afternoon (school time now).
2004-01-19 16:33:06 +00:00
Alejandro Conty Estevez
81d9e52e20 Search for yafray path under unix like systems (using expected paths).
Should fix OS X problems with executing yafray.
2004-01-19 15:32:16 +00:00
Jacques Guignot
e34cb90205 moved a local variable declaration, which crashed MSVC... Picky compiler... 2004-01-19 10:52:07 +00:00
Jacques Guignot
969966f0e6 fixed a bug in addCurve function. The semantics has not been changed. Tkx to jms for pointing it. 2004-01-18 23:43:23 +00:00
Alfredo de Greef
41144750da corrected particle object dupliverts and aramature duplivert export problems
corrected power slider increment update
2004-01-18 20:00:17 +00:00
Daniel Dunbar
8139587af5 - spelled catmull's name right ;)
- bug fix, rebuild displist after decimation apply
 - bug fix, decimation was not freeing deform weights
2004-01-18 18:14:15 +00:00
Daniel Dunbar
73665ee9bd - bug fix, access thru null displist (rare, triggered by another bug
where mesh displist isn't rebuilt)
2004-01-18 18:04:58 +00:00
Robert Wenzlaff
ede644969b - Made dispfact for new mtex default to 0.2.
- Fine tunes scaleing of Nor channel to better match intensity chan.
	- removed last debug printf.
2004-01-18 17:17:44 +00:00
Martin Poirier
60a5328d4b Drawing a line to show where the area lights are heading.
Feel free to make better.
2004-01-18 16:55:07 +00:00
Willian Padovani Germano
c31de00284 Script menus:
-- trying a different approach to see if the crash on Windows goes away.

Running a script with PyRun_File -- a Python/C API function -- was probably
the cause for crashes on Windows, because it uses a pointer to a FILE
struct and on windows this struct can be "different and incompatible"
depending on which libc was used to build the program.  This is mentioned in
the Python/C API Ref Manual, chapter 2.

Now we're loading the file contents to a string buffer and using PyRun_String.
2004-01-18 15:08:02 +00:00
Chris Want
e581b5c265 When renaming a bone in editmode, make sure the name of the pose channel
for the bone is also updated (and hence ensure that the constraints are
still valid).
2004-01-17 18:40:22 +00:00
Ton Roosendaal
f7b9fbbbf2 - Add new scene, and choose "Full Copy", didn't create a new Ipo for a
Camera block; it remained linked to 2 camera's. Fixed!
2004-01-17 17:12:05 +00:00
Ton Roosendaal
cfe180805b - ray shadow now also does the options:
- Lamp only shadow (use 'energy' to control amount that gets subtracted)
  - Material only shadow (remember, is an alpha trick)
- demo files for this have been included in testing suite, will be
  upgraded soon.
2004-01-17 16:01:51 +00:00
Ton Roosendaal
dab319cfe1 - updated stringlenght for animated texture images in Texture. It used
only the define FILE_MAXFILE, which should be added with FILE_MAXDIR.
- one day these defines should be made more clear, uh!
2004-01-17 13:54:21 +00:00
Ton Roosendaal
bd708b1637 - removed ugly code, that used sprintf with an input string identical to
output string. Seems to be a reason for windows versions to crash,
  sometimes.
2004-01-17 13:24:09 +00:00
Ton Roosendaal
247d40d11e - fix for drawing lamp name in 3d window at correct location. 2004-01-17 13:15:19 +00:00
Ton Roosendaal
9d15dc5e8d - fix for error in 2.31 release! in editmode, ctrl+rightmouse didnt allow
selection of other objects, for vertex parenting.
  I added comments to the call to remind.
2004-01-17 12:54:11 +00:00
Matt Ebb
aefe45e9b1 * Fixed some non-working toolbox entries (Thanks William Reynish for the report)
* Added animation playback menu items to IPO, Sequencer, Sound menus

* Added hotkey descriptions to more items in the 3D View menus
2004-01-17 05:51:06 +00:00
Willian Padovani Germano
f3c5206b71 Scripts menus:
-- added re-eval entry to Scripts Win -> Scripts menu
-- added it also as a button at Info Win -> File Paths, Python path
-- updated bpymenus code:
    added 'Blender' tag, for version;
    made a .Bpymenus file be written only if there's actual data to save
    made file->export menu open a scriptspace only if none is available already
-- bug fixes (bugs 866 and 879, related) for linking and sharing mesh data:
http://projects.blender.org/tracker/?func=detail&atid=125&aid=866&group_id=9
http://projects.blender.org/tracker/?func=detail&atid=125&aid=879&group_id=9
2004-01-16 23:40:14 +00:00
Ton Roosendaal
24c43b835d - pressing Enter key on numbutton increases/decreases again.
- added displist.h for proper prototype in previous commit
2004-01-16 21:16:09 +00:00
Ton Roosendaal
d5a1b582c3 two fixes:
- while Faceselect mode on Subsurf, it didnt render the changes. this was
  because the displaylist wasnt updated (the 3d window shows original mesh)
- added proper redraw event for F10-sound buttons when you add a new sound.
  somehow sound doesnt play anymore here... have to check further.
2004-01-16 19:30:25 +00:00
Rob Haarsma
dcc8af9374 Comes with previous commit. Allow linedist setting smaller than 1.0. 2004-01-16 14:50:22 +00:00
Rob Haarsma
0ef6f7e927 Corrected the line distance behaviour for Text objects.
The font vectordata is scaled on load, so the character size will fit between the default (1.0) linedist.
Warning: this might change the font size in older blend files. (read: breaks backward compatibility)
2004-01-16 12:49:43 +00:00
Joseph Gilbert
fb6133264a -reimplement OB_Surf support for curves 2004-01-16 01:19:36 +00:00
Rob Haarsma
50ad38cf56 Changed the Font editing panel so it displays the Postscript name of the font.
Also supplied tooltip information for the buttons in the Font panel.
2004-01-15 20:34:54 +00:00
Alejandro Conty Estevez
3b1b0f3ef5 Gradient button is back and now there are controls to export bias and
raydepth to yafray. Plus some minor fixes
2004-01-15 17:01:02 +00:00
Joseph Gilbert
ec4cccef61 -bug fixes for materials updating - BalaGi found these bugs
- NMesh.c added support for materials updating while converting a python NMesh to a Mesh object
- Object.c added support for materials updating in Link() and shareFrom() when two objects share a mesh linked to a material
2004-01-15 12:55:41 +00:00
Robert Wenzlaff
52e5a15bab - Separates displace from Var slider. Added Disp Slider to
control how the intensity channel affects displacement.  Nor
	  slider still controls how Nor channel affects displacement.

	- Scaled Nor displacement to make Nor slider more usable.

	- Removed Data scale from displacement routines.  Made
	  sliders unusable for objects scaled in editmode.  Displacement
	  now relative to unit sized object.  Displace still tracks
	  with object scale, so scale out of editmode if you want a
	  large object with deep displacement.
2004-01-15 04:06:24 +00:00
Willian Padovani Germano
39714fe42c BPython:
- some fixes for menu and error reporting code.
2004-01-15 03:46:47 +00:00
Roel Spruit
f9ed7f0f88 Object > Copy Attributes menu items crashed my system if there weren't any objects selected and active. found a if(ob=OBACT) block that caused it. aparently assigment in if statements doesn't always go to well. 2004-01-14 23:04:09 +00:00
Roel Spruit
8df5de525c added python script files to MSVC 6.0 projectfiles and changed snprintf to PyOS_snprintf 2004-01-14 21:48:56 +00:00
Willian Padovani Germano
0d9d16e6e9 Scripts in menus:
-- this finishes the heavier part (not counting tweaks and possible bugs) of
letting scripts be accessed from Blender menus.  Will explain more in emails
to bf and bpython lists, but just check
source/blender/python/BPY_menus.[hc] and
source/blender/src/header_info.c and header_script.c for details.

Scripts need a small update (registering info, basically a header) to be used.
Scripts dir (user pref file paths: Python) must be set.
2004-01-14 21:36:10 +00:00
Ton Roosendaal
5190faf513 - fix for speedup raytracing, which gave errors in very simple scenes
(1 lamp, shadow). The 'coherence' check gets reset now for each new
  pixel rendered, which remains efficient for oversampling.
- small cleanups in code, prototype added, less globals.
2004-01-14 20:13:41 +00:00
Ton Roosendaal
dd71491120 - preview render cube was too small, increased size a bit
- preview render sphere and cube had texture upside down
2004-01-14 20:11:42 +00:00
Alejandro Conty Estevez
d217f86ed5 Just a bit of export values tunning. Should now work ok, with current
yafray CVS version using photons.
Last image got:
http://www.coala.uniovi.es/~jandro/noname/images/fromblender3.jpg
which you can compare with old:
http://www.coala.uniovi.es/~jandro/noname/images/causfromblender.jpg
2004-01-14 16:03:06 +00:00
Matt Ebb
c1a1ba93ae * Bug fix in view3d menus - wasn't checking a pointer's initialisation strictly enough. 2004-01-14 15:51:37 +00:00
Martin Poirier
3cfa085a46 Set cursor calls for the bevel function. Making sure the hourglass (waiting cursor) is not displayed when we don't want it to. 2004-01-14 15:41:49 +00:00
Ton Roosendaal
e76eb6a45a - code that limited zooming in and zooming out for spaces like sequencer,
audiotimeline, etc. was accidentally removed in 2.30 UI makeover. put
  it back. fixes report in tracker from Cessen, thnx!
2004-01-14 14:47:41 +00:00
Ton Roosendaal
3e84e66078 fix for tracker report on crashing border render in unified render.
it is related to the fix for 2.31, wich disabled hackish feature of
 inserting the previous render outside border. i forgot the unified has
 this code entirely duplicated, something to get rid of one day...
2004-01-14 14:30:59 +00:00