Commit Graph

1651 Commits

Author SHA1 Message Date
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
Robert Wenzlaff
d7bac993fa - Correction to scale calculation on Metaballs, provided by Jiri. 2004-01-14 13:18:11 +00:00
Ton Roosendaal
0d6533a48f fix for bug that caused transparant shadow change how a texture
rendered itself. this happened when transparent shadow ray hit a face
 with same material as where ray started.

 is this understandable? i guess not! :P
 the actual fix is just a few lines, to store material locally before
 going to trace transp shadow.
2004-01-13 22:49:11 +00:00
Ton Roosendaal
6727eb6104 restored old clipping plane method.
Justin will come with separate option to choose for 'automatic clipping', not
based on the vd->dist value, but something smarter... needs more work.
2004-01-13 22:45:44 +00:00
Roel Spruit
7e3c4dd0bb Justin improved clipping at extreme zoomlevels. when you were fully zoomed in you couldn't see all the geometry (correctly). 2004-01-13 20:55:59 +00:00
Alejandro Conty Estevez
4712655080 Global photons export for yafray. Square arealights, spot and point can work
as emitters. Needs latest yafray code, still not in cvs.
2004-01-13 16:51:35 +00:00
Ton Roosendaal
4c718d49cd - commented out drawing of file->import item in pulldown menu, it is
empty now
2004-01-13 15:51:50 +00:00
Rob Haarsma
4a8f52f619 Converted the Userpreference buttons to zr's new ButBit calls.
Also added USER_*  to each define located in DNA_userdef.h.
2004-01-13 14:50:45 +00:00
Robert Wenzlaff
d74da9789a - Fixed metaball boundingbox bug. tex_space_mball() only fills in
ob->bb, not data->bb, like tex_space_mesh() and tex_space_curve().
	Reported by Jiri Hnidek.
2004-01-13 00:45:01 +00:00
Matt Ebb
9151dc031a * Added the 'U' hotkey in the Unwrap UVs view3d menu item. Thanks very much for the fix, Ton!
* Fixed a small bug in the toolbox (editmode transformations)
2004-01-13 00:35:11 +00:00
Ton Roosendaal
3805cf23f5 - fix for calling 'unwrap UV' from faceselect view3d pulldown. it needed
a 'winset' to activate window, otherwise header still active
- removed 'size' button from Magic texture, was accidentally added
2004-01-12 16:51:33 +00:00
Alejandro Conty Estevez
501adfba42 Yafray panel splitted in two so we can add more settings.
Also preliminar square arealight export, not usable yet, will be usefull
as soon as photon export is added.
2004-01-12 16:46:47 +00:00
Robert Wenzlaff
3ed49f3299 -Attempted fix for flipped normal. Solves "No V. Norm flip" problem,
but I doubt it's the whole solution.
2004-01-12 14:42:43 +00:00
Matt Ebb
27e45078c5 Another small fix to some toolbox titles that I missed before. Woops! :/ 2004-01-12 13:48:26 +00:00
Matt Ebb
fa1d682f6f Fixed a couple of small typos in curve menus/toolbox.
Forgot to mention in the last big commit, thanks to William Reynish for reporting/proposing some missing menu items and nagging me to fix them :)
2004-01-12 13:42:16 +00:00
Matt Ebb
708494ae26 Most people will have it collapsed away anyway, but...
* Changed the menu name in buttons panels from 'View' to 'Panels'. Two 'View' menus stacked above each other just looked dumb :)
2004-01-12 13:35:37 +00:00
Matt Ebb
9de93ac9dc * Big menus update
Hard to describe other than by saying:

* Updates, re-thought organisation, etc based on testing
and feedback from 2.30 -> 2.31
* A *lot* of missing entries added
* Toolbox expanded, tidied and more consistent with
 pulldown menus
* A lot of functionality hidden behind secondary pupmenu()s is now exposed through arguments, so that
they can be more easily explored from the pulldowns and
toolbox.

This is the reason for the many changed files in this
commit - had to clean up editing functions. Mixing
interface code in the middle of editing functionality is not
good for menus and toolboxes. Please don't do it!

At this stage, the menu and toolbox system (at least for most window spaces) should be just about 'stable' and 'complete'. It's now up to people to keep them up to date :)
2004-01-12 13:30:00 +00:00
Martin Poirier
e40eaa4d47 Mirror function: Moved push_mesh to functionality function, to truely split functionality and interface. Thanks to broken for spotting that. 2004-01-12 02:46:14 +00:00
Chris Want
3d07196b74 Better pose figuring: fix for the "blender's bone constraints don't work
in pose mode when you merely move the parent of a constraint subtarget"
bug.
2004-01-12 00:53:23 +00:00
Ton Roosendaal
8a0317c8f1 Historical commit... error found in DNA code! <blush>
It is just too hard to describe, just that it didnt check for changing
arrays well enough, causing contents of array textfield[] to be copied in
array text[]....

Anyhoo, this fixes the grey text, as showed up in brokens commit of
saturday. Thanks Matt! :)
2004-01-12 00:15:21 +00:00