Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix incorrect set FinalGather, showPN and show_map

  • Loading branch information...
commit 8a673de767b3866a96b38142f488147aaf85fab6 1 parent 770895b
exvion authored
3  su2yafaray.rb
View
@@ -292,7 +292,7 @@ def SU2YAFARAY.export_background(yi)
yi.paramsSetInt("light_samples",16)
yi.paramsSetFloat("power",0.75)
yi.paramsSetFloat("sun_power",1)
- yi.paramsSetFloat("turbidity",3)
+ yi.paramsSetFloat("turbidity",Float(@ys.turbidity))
yi.paramsSetString("type", "sunsky")
elsif (@ys.background_type=="darksky")
p "darksky"
@@ -496,7 +496,6 @@ def SU2YAFARAY.export_mat(mat,yi)
def SU2YAFARAY.render(useXML)
#Sketchup.send_action "showRubyPanel:"
@ys=YafaraySettings.new
- p @ys.aa_passes
SU2YAFARAY.reset_variables
if useXML
export_file_path=SU2YAFARAY.get_export_file_path
12 su2yafaray/YafaraySettingsEditor.rb
View
@@ -93,8 +93,8 @@ def initialize
when "debugType"
@ys.debugType=value
when "showPN"
- @ys.showPN=true if value="true"
- @ys.showPN=false if value="false"
+ @ys.showPN=true if value=="true"
+ @ys.showPN=false if value=="false"
#pathtracing
when "bounces"
@ys.bounces=value
@@ -115,15 +115,15 @@ def initialize
@ys.photons=value
#photon mapping
when "finalGather"
- @ys.finalGather=true if value="true"
- @ys.finalGather=false if value="false"
+ @ys.finalGather=true if value=="true"
+ @ys.finalGather=false if value=="false"
when "fg_bounces"
@ys.fg_bounces=value
when "fg_samples"
@ys.fg_samples=value
when "show_map"
- @ys.show_map=true if value="true"
- @ys.show_map=false if value="false"
+ @ys.show_map=true if value=="true"
+ @ys.show_map=false if value=="false"
when 'pm_bounces'
@ys.pm_bounces=value
when 'pm_photons'
12 su2yafaray/settings.html
View
@@ -203,11 +203,15 @@
$('#d_var').spin();
$('#e_var').spin();
$('#altitude').spin();
-
- $(":checkbox").click(function(){setCheckboxOnOff($(this));});
- $(":checkbox").change(function(){setCheckboxOnOff($(this));});
-
+ $('#horizon_color').mycolorpicker();
+ $('#horizon_ground_color').mycolorpicker();
+ $('#zenith_color').mycolorpicker();
+ $('#zenith_ground_color').mycolorpicker();
+
+$(":checkbox").click(function(){setCheckboxOnOff($(this));});
+$(":checkbox").change(function(){setCheckboxOnOff($(this));});
+
$(".columns").each(function (i) {
var colWrap = $(this).width();
var childrens=$(this).children();
Please sign in to comment.
Something went wrong with that request. Please try again.